@@ -18,7 +18,7 @@ foreach ($strVals as $strVal) {
18
18
foreach ($ strVals as $ otherVal ) {
19
19
echo "--- testing: ' $ strVal' << ' $ otherVal' --- \n" ;
20
20
try {
21
- var_dump (strVal<<$ otherVal );
21
+ var_dump ($ strVal <<$ otherVal );
22
22
} catch (Throwable $ e ) {
23
23
echo "Exception: " . $ e ->getMessage () . "\n" ;
24
24
}
@@ -57,17 +57,17 @@ int(0)
57
57
--- testing: '0' << 'a5.9' ---
58
58
int(0)
59
59
--- testing: '65' << '0' ---
60
- int(0 )
60
+ int(65 )
61
61
--- testing: '65' << '65' ---
62
62
int(0)
63
63
--- testing: '65' << '-44' ---
64
64
Exception: Bit shift by negative number
65
65
--- testing: '65' << '1.2' ---
66
- int(0 )
66
+ int(130 )
67
67
--- testing: '65' << '-7.7' ---
68
68
Exception: Bit shift by negative number
69
69
--- testing: '65' << 'abc' ---
70
- int(0 )
70
+ int(65 )
71
71
--- testing: '65' << '123abc' ---
72
72
int(0)
73
73
--- testing: '65' << '123e5' ---
@@ -81,21 +81,21 @@ int(0)
81
81
--- testing: '65' << '123abc ' ---
82
82
int(0)
83
83
--- testing: '65' << '3.4a' ---
84
- int(0 )
84
+ int(520 )
85
85
--- testing: '65' << 'a5.9' ---
86
- int(0 )
86
+ int(65 )
87
87
--- testing: '-44' << '0' ---
88
- int(0 )
88
+ int(-44 )
89
89
--- testing: '-44' << '65' ---
90
90
int(0)
91
91
--- testing: '-44' << '-44' ---
92
92
Exception: Bit shift by negative number
93
93
--- testing: '-44' << '1.2' ---
94
- int(0 )
94
+ int(-88 )
95
95
--- testing: '-44' << '-7.7' ---
96
96
Exception: Bit shift by negative number
97
97
--- testing: '-44' << 'abc' ---
98
- int(0 )
98
+ int(-44 )
99
99
--- testing: '-44' << '123abc' ---
100
100
int(0)
101
101
--- testing: '-44' << '123e5' ---
@@ -109,21 +109,21 @@ int(0)
109
109
--- testing: '-44' << '123abc ' ---
110
110
int(0)
111
111
--- testing: '-44' << '3.4a' ---
112
- int(0 )
112
+ int(-352 )
113
113
--- testing: '-44' << 'a5.9' ---
114
- int(0 )
114
+ int(-44 )
115
115
--- testing: '1.2' << '0' ---
116
- int(0 )
116
+ int(1 )
117
117
--- testing: '1.2' << '65' ---
118
118
int(0)
119
119
--- testing: '1.2' << '-44' ---
120
120
Exception: Bit shift by negative number
121
121
--- testing: '1.2' << '1.2' ---
122
- int(0 )
122
+ int(2 )
123
123
--- testing: '1.2' << '-7.7' ---
124
124
Exception: Bit shift by negative number
125
125
--- testing: '1.2' << 'abc' ---
126
- int(0 )
126
+ int(1 )
127
127
--- testing: '1.2' << '123abc' ---
128
128
int(0)
129
129
--- testing: '1.2' << '123e5' ---
@@ -137,21 +137,21 @@ int(0)
137
137
--- testing: '1.2' << '123abc ' ---
138
138
int(0)
139
139
--- testing: '1.2' << '3.4a' ---
140
- int(0 )
140
+ int(8 )
141
141
--- testing: '1.2' << 'a5.9' ---
142
- int(0 )
142
+ int(1 )
143
143
--- testing: '-7.7' << '0' ---
144
- int(0 )
144
+ int(-7 )
145
145
--- testing: '-7.7' << '65' ---
146
146
int(0)
147
147
--- testing: '-7.7' << '-44' ---
148
148
Exception: Bit shift by negative number
149
149
--- testing: '-7.7' << '1.2' ---
150
- int(0 )
150
+ int(-14 )
151
151
--- testing: '-7.7' << '-7.7' ---
152
152
Exception: Bit shift by negative number
153
153
--- testing: '-7.7' << 'abc' ---
154
- int(0 )
154
+ int(-7 )
155
155
--- testing: '-7.7' << '123abc' ---
156
156
int(0)
157
157
--- testing: '-7.7' << '123e5' ---
@@ -165,9 +165,9 @@ int(0)
165
165
--- testing: '-7.7' << '123abc ' ---
166
166
int(0)
167
167
--- testing: '-7.7' << '3.4a' ---
168
- int(0 )
168
+ int(-56 )
169
169
--- testing: '-7.7' << 'a5.9' ---
170
- int(0 )
170
+ int(-7 )
171
171
--- testing: 'abc' << '0' ---
172
172
int(0)
173
173
--- testing: 'abc' << '65' ---
@@ -197,17 +197,17 @@ int(0)
197
197
--- testing: 'abc' << 'a5.9' ---
198
198
int(0)
199
199
--- testing: '123abc' << '0' ---
200
- int(0 )
200
+ int(123 )
201
201
--- testing: '123abc' << '65' ---
202
202
int(0)
203
203
--- testing: '123abc' << '-44' ---
204
204
Exception: Bit shift by negative number
205
205
--- testing: '123abc' << '1.2' ---
206
- int(0 )
206
+ int(246 )
207
207
--- testing: '123abc' << '-7.7' ---
208
208
Exception: Bit shift by negative number
209
209
--- testing: '123abc' << 'abc' ---
210
- int(0 )
210
+ int(123 )
211
211
--- testing: '123abc' << '123abc' ---
212
212
int(0)
213
213
--- testing: '123abc' << '123e5' ---
@@ -221,21 +221,21 @@ int(0)
221
221
--- testing: '123abc' << '123abc ' ---
222
222
int(0)
223
223
--- testing: '123abc' << '3.4a' ---
224
- int(0 )
224
+ int(984 )
225
225
--- testing: '123abc' << 'a5.9' ---
226
- int(0 )
226
+ int(123 )
227
227
--- testing: '123e5' << '0' ---
228
- int(0 )
228
+ int(12300000 )
229
229
--- testing: '123e5' << '65' ---
230
230
int(0)
231
231
--- testing: '123e5' << '-44' ---
232
232
Exception: Bit shift by negative number
233
233
--- testing: '123e5' << '1.2' ---
234
- int(0 )
234
+ int(24600000 )
235
235
--- testing: '123e5' << '-7.7' ---
236
236
Exception: Bit shift by negative number
237
237
--- testing: '123e5' << 'abc' ---
238
- int(0 )
238
+ int(12300000 )
239
239
--- testing: '123e5' << '123abc' ---
240
240
int(0)
241
241
--- testing: '123e5' << '123e5' ---
@@ -249,21 +249,21 @@ int(0)
249
249
--- testing: '123e5' << '123abc ' ---
250
250
int(0)
251
251
--- testing: '123e5' << '3.4a' ---
252
- int(0 )
252
+ int(98400000 )
253
253
--- testing: '123e5' << 'a5.9' ---
254
- int(0 )
254
+ int(12300000 )
255
255
--- testing: '123e5xyz' << '0' ---
256
- int(0 )
256
+ int(12300000 )
257
257
--- testing: '123e5xyz' << '65' ---
258
258
int(0)
259
259
--- testing: '123e5xyz' << '-44' ---
260
260
Exception: Bit shift by negative number
261
261
--- testing: '123e5xyz' << '1.2' ---
262
- int(0 )
262
+ int(24600000 )
263
263
--- testing: '123e5xyz' << '-7.7' ---
264
264
Exception: Bit shift by negative number
265
265
--- testing: '123e5xyz' << 'abc' ---
266
- int(0 )
266
+ int(12300000 )
267
267
--- testing: '123e5xyz' << '123abc' ---
268
268
int(0)
269
269
--- testing: '123e5xyz' << '123e5' ---
@@ -277,21 +277,21 @@ int(0)
277
277
--- testing: '123e5xyz' << '123abc ' ---
278
278
int(0)
279
279
--- testing: '123e5xyz' << '3.4a' ---
280
- int(0 )
280
+ int(98400000 )
281
281
--- testing: '123e5xyz' << 'a5.9' ---
282
- int(0 )
282
+ int(12300000 )
283
283
--- testing: ' 123abc' << '0' ---
284
- int(0 )
284
+ int(123 )
285
285
--- testing: ' 123abc' << '65' ---
286
286
int(0)
287
287
--- testing: ' 123abc' << '-44' ---
288
288
Exception: Bit shift by negative number
289
289
--- testing: ' 123abc' << '1.2' ---
290
- int(0 )
290
+ int(246 )
291
291
--- testing: ' 123abc' << '-7.7' ---
292
292
Exception: Bit shift by negative number
293
293
--- testing: ' 123abc' << 'abc' ---
294
- int(0 )
294
+ int(123 )
295
295
--- testing: ' 123abc' << '123abc' ---
296
296
int(0)
297
297
--- testing: ' 123abc' << '123e5' ---
@@ -305,21 +305,21 @@ int(0)
305
305
--- testing: ' 123abc' << '123abc ' ---
306
306
int(0)
307
307
--- testing: ' 123abc' << '3.4a' ---
308
- int(0 )
308
+ int(984 )
309
309
--- testing: ' 123abc' << 'a5.9' ---
310
- int(0 )
310
+ int(123 )
311
311
--- testing: '123 abc' << '0' ---
312
- int(0 )
312
+ int(123 )
313
313
--- testing: '123 abc' << '65' ---
314
314
int(0)
315
315
--- testing: '123 abc' << '-44' ---
316
316
Exception: Bit shift by negative number
317
317
--- testing: '123 abc' << '1.2' ---
318
- int(0 )
318
+ int(246 )
319
319
--- testing: '123 abc' << '-7.7' ---
320
320
Exception: Bit shift by negative number
321
321
--- testing: '123 abc' << 'abc' ---
322
- int(0 )
322
+ int(123 )
323
323
--- testing: '123 abc' << '123abc' ---
324
324
int(0)
325
325
--- testing: '123 abc' << '123e5' ---
@@ -333,21 +333,21 @@ int(0)
333
333
--- testing: '123 abc' << '123abc ' ---
334
334
int(0)
335
335
--- testing: '123 abc' << '3.4a' ---
336
- int(0 )
336
+ int(984 )
337
337
--- testing: '123 abc' << 'a5.9' ---
338
- int(0 )
338
+ int(123 )
339
339
--- testing: '123abc ' << '0' ---
340
- int(0 )
340
+ int(123 )
341
341
--- testing: '123abc ' << '65' ---
342
342
int(0)
343
343
--- testing: '123abc ' << '-44' ---
344
344
Exception: Bit shift by negative number
345
345
--- testing: '123abc ' << '1.2' ---
346
- int(0 )
346
+ int(246 )
347
347
--- testing: '123abc ' << '-7.7' ---
348
348
Exception: Bit shift by negative number
349
349
--- testing: '123abc ' << 'abc' ---
350
- int(0 )
350
+ int(123 )
351
351
--- testing: '123abc ' << '123abc' ---
352
352
int(0)
353
353
--- testing: '123abc ' << '123e5' ---
@@ -361,21 +361,21 @@ int(0)
361
361
--- testing: '123abc ' << '123abc ' ---
362
362
int(0)
363
363
--- testing: '123abc ' << '3.4a' ---
364
- int(0 )
364
+ int(984 )
365
365
--- testing: '123abc ' << 'a5.9' ---
366
- int(0 )
366
+ int(123 )
367
367
--- testing: '3.4a' << '0' ---
368
- int(0 )
368
+ int(3 )
369
369
--- testing: '3.4a' << '65' ---
370
370
int(0)
371
371
--- testing: '3.4a' << '-44' ---
372
372
Exception: Bit shift by negative number
373
373
--- testing: '3.4a' << '1.2' ---
374
- int(0 )
374
+ int(6 )
375
375
--- testing: '3.4a' << '-7.7' ---
376
376
Exception: Bit shift by negative number
377
377
--- testing: '3.4a' << 'abc' ---
378
- int(0 )
378
+ int(3 )
379
379
--- testing: '3.4a' << '123abc' ---
380
380
int(0)
381
381
--- testing: '3.4a' << '123e5' ---
@@ -389,9 +389,9 @@ int(0)
389
389
--- testing: '3.4a' << '123abc ' ---
390
390
int(0)
391
391
--- testing: '3.4a' << '3.4a' ---
392
- int(0 )
392
+ int(24 )
393
393
--- testing: '3.4a' << 'a5.9' ---
394
- int(0 )
394
+ int(3 )
395
395
--- testing: 'a5.9' << '0' ---
396
396
int(0)
397
397
--- testing: 'a5.9' << '65' ---
0 commit comments