3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $gagne = 0; $perdu = 0; for ($i=0;$i<=1000;$i++) { $lancer1 = rand(1,2); $lancer2 = rand(1,2); if($lancer1 == 1 or $lancer2 == 1) { if($lancer2==1 && $lancer1 ==1) { $gagne++; } else { $perdu++; } } } echo $gagne." "; echo $perdu ?>
Output for 7.1.0
244 502
Output for 7.0.14
255 497
Output for 7.0.6
253 474
Output for 7.0.5
251 516
Output for 7.0.4
237 519
Output for 7.0.3
242 522
Output for 7.0.2
243 521
Output for 7.0.1
248 492
Output for 7.0.0
240 493
Output for hhvm-3.12.0
225 515
Output for hhvm-3.10.0
255 481
Output for 5.6.28
237 495
Output for 5.6.21
244 505
Output for 5.6.20
250 484
Output for 5.6.19
235 496
Output for 5.6.18
245 508
Output for 5.6.17
244 491
Output for 5.6.16
236 519
Output for 5.6.15
260 473
Output for 5.6.14
249 511
Output for 5.6.13
238 500
Output for 5.6.12
278 488
Output for 5.6.11
277 470
Output for 5.6.10
251 518
Output for 5.6.9
253 490
Output for 5.6.8
259 489
Output for 5.5.35
234 533
Output for 5.5.34
232 527
Output for 5.5.33
265 495
Output for 5.5.32
234 512
Output for 5.5.31
244 484
Output for 5.5.30
227 509
Output for 5.5.29
247 497
Output for 5.5.28
245 500
Output for 5.5.27
264 492
Output for 5.5.26
246 490
Output for 5.5.25
257 508
Output for 5.5.24
260 507
Output for 5.4.45
233 511
Output for 5.4.44
261 491
Output for 5.4.43
250 528
Output for 5.3.11, 5.4.42
241 505
Output for 5.4.41
237 512
Output for 5.4.40
236 487
Output for 5.4.39
245 498
Output for 5.4.38
251 492
Output for 5.4.37
284 457
Output for 5.4.36
252 495
Output for 5.4.35
268 490
Output for 5.4.34
245 541
Output for 5.4.32
240 545
Output for 5.4.31
257 486
Output for 5.4.30
234 522
Output for 5.4.29
279 454
Output for 5.4.28
276 496
Output for 5.4.27
233 522
Output for 5.4.26
271 469
Output for 5.4.25
260 480
Output for 5.4.24
260 500
Output for 5.4.23
255 484
Output for 5.4.22
246 520
Output for 5.4.21
274 495
Output for 5.4.20
242 485
Output for 5.4.19
247 521
Output for 5.4.18
248 503
Output for 5.4.17
235 513
Output for 5.4.16
256 480
Output for 5.4.15
250 487
Output for 5.4.14
267 492
Output for 5.4.13
248 499
Output for 5.4.12
233 529
Output for 5.4.11
242 490
Output for 5.4.10
266 499
Output for 5.4.9
241 522
Output for 5.4.8
231 527
Output for 5.4.7
258 506
Output for 5.4.6
244 497
Output for 5.4.5
239 498
Output for 5.4.4
279 497
Output for 5.4.3
253 491
Output for 5.4.2
234 521
Output for 5.4.1
265 498
Output for 5.4.0
246 497
Output for 5.3.29
252 499
Output for 5.3.28
234 523
Output for 5.3.27
253 488
Output for 5.3.26
258 504
Output for 5.3.7, 5.3.25
259 488
Output for 5.3.24
271 496
Output for 5.3.23
257 500
Output for 5.3.22
239 517
Output for 5.3.21
234 517
Output for 5.3.20
240 532
Output for 5.3.19
262 495
Output for 5.3.18
239 529
Output for 5.3.17
238 529
Output for 5.3.16
230 496
Output for 5.3.15
265 474
Output for 5.2.13, 5.3.14
262 489
Output for 5.3.13
218 517
Output for 5.3.12
250 503
Output for 5.3.10
260 493
Output for 5.3.9
253 482
Output for 5.3.8
235 505
Output for 5.3.6
260 487
Output for 5.3.5
251 497
Output for 5.3.4
244 525
Output for 5.3.3
219 535
Output for 5.3.2
245 520
Output for 5.3.1
246 493
Output for 5.3.0
269 495
Output for 5.2.17
274 464
Output for 5.2.16
259 507
Output for 5.2.15
254 502
Output for 5.2.14
247 519
Output for 5.2.12
232 505
Output for 5.2.11
237 515
Output for 5.2.10
277 489
Output for 5.2.9
234 498
Output for 5.2.8
244 489
Output for 5.2.7
251 502
Output for 5.2.6
254 485
Output for 5.2.5
238 516
Output for 5.2.4
241 521
Output for 5.2.3
271 516
Output for 5.2.2
242 509
Output for 5.2.1
245 475
Output for 5.2.0
260 491
Output for 5.1.6
262 502
Output for 5.1.5
244 508
Output for 5.1.4
272 477
Output for 5.1.3
271 483
Output for 5.1.2
271 489
Output for 5.1.1
249 503
Output for 5.1.0
250 500
Output for 5.0.5
226 521
Output for 5.0.4
263 511
Output for 5.0.3
250 518
Output for 5.0.2
252 505
Output for 5.0.1
275 480
Output for 4.3.2, 5.0.0
259 485
Output for 4.4.9
241 503
Output for 4.4.8
243 516
Output for 4.4.7
261 505
Output for 4.4.6
239 481
Output for 4.4.5
259 508
Output for 4.4.4
253 479
Output for 4.4.3
241 518
Output for 4.4.2
249 507
Output for 4.4.1
266 511
Output for 4.4.0
240 520
Output for 4.3.11
262 476
Output for 4.3.10
225 493
Output for 4.3.9
243 491
Output for 4.3.8
248 509
Output for 4.3.7
235 523
Output for 4.3.6
247 522
Output for 4.3.5
273 493
Output for 4.3.4
248 510
Output for 4.3.3
264 511
Output for 4.3.1
261 493
Output for 4.3.0
245 505