3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $one = $two = $three = 0; for($i=0;$i<1400;$i++) { $c = mt_rand(1,3); if($c == 1) { $one++; } elseif($c == 2) { $two++; } elseif($c=3) { $three++; } } echo "one {$one}; two {$two}; three {$three}";
based on QlMqI
Output for 7.1.0
one 498; two 451; three 451
Output for 7.0.14
one 469; two 484; three 447
Output for 7.0.6
one 461; two 466; three 473
Output for 7.0.5
one 487; two 463; three 450
Output for 5.4.12, 7.0.4
one 454; two 464; three 482
Output for 7.0.3
one 468; two 425; three 507
Output for 7.0.2
one 472; two 464; three 464
Output for 7.0.1
one 462; two 489; three 449
Output for 7.0.0
one 491; two 448; three 461
Output for hhvm-3.12.0
one 471; two 466; three 463
Output for hhvm-3.10.0
one 487; two 456; three 457
Output for 5.6.28
one 466; two 461; three 473
Output for 4.3.6, 5.6.21
one 449; two 483; three 468
Output for 5.6.20
one 461; two 477; three 462
Output for 5.6.19
one 487; two 452; three 461
Output for 5.6.18
one 471; two 477; three 452
Output for 5.6.17
one 439; two 460; three 501
Output for 5.6.16
one 459; two 478; three 463
Output for 5.4.14, 5.6.15
one 463; two 467; three 470
Output for 5.6.14
one 486; two 458; three 456
Output for 5.6.13
one 485; two 465; three 450
Output for 5.6.12
one 434; two 495; three 471
Output for 5.6.11
one 459; two 484; three 457
Output for 5.6.10
one 463; two 478; three 459
Output for 5.6.9
one 472; two 456; three 472
Output for 5.6.8
one 472; two 446; three 482
Output for 5.5.35
one 479; two 449; three 472
Output for 5.5.34
one 468; two 497; three 435
Output for 5.5.33
one 469; two 488; three 443
Output for 5.5.32
one 456; two 461; three 483
Output for 5.5.31
one 445; two 479; three 476
Output for 5.5.30
one 440; two 485; three 475
Output for 5.5.29
one 460; two 448; three 492
Output for 5.5.28
one 486; two 456; three 458
Output for 5.5.27
one 455; two 465; three 480
Output for 5.5.26
one 473; two 473; three 454
Output for 5.5.25
one 454; two 469; three 477
Output for 5.5.24
one 476; two 454; three 470
Output for 5.4.45
one 444; two 487; three 469
Output for 5.4.44
one 453; two 498; three 449
Output for 5.4.43
one 495; two 441; three 464
Output for 5.4.42
one 512; two 452; three 436
Output for 5.4.41
one 432; two 457; three 511
Output for 5.4.40
one 467; two 467; three 466
Output for 5.4.39
one 450; two 491; three 459
Output for 5.4.38
one 460; two 487; three 453
Output for 5.4.37
one 443; two 498; three 459
Output for 5.4.36
one 453; two 468; three 479
Output for 5.4.35
one 478; two 462; three 460
Output for 5.4.34
one 489; two 451; three 460
Output for 5.4.32
one 463; two 455; three 482
Output for 5.4.31
one 477; two 459; three 464
Output for 5.4.30
one 476; two 472; three 452
Output for 5.4.29
one 470; two 463; three 467
Output for 5.4.28
one 471; two 486; three 443
Output for 5.4.27
one 470; two 457; three 473
Output for 5.4.26
one 483; two 459; three 458
Output for 5.4.25
one 481; two 466; three 453
Output for 5.4.24
one 451; two 488; three 461
Output for 5.4.23
one 469; two 454; three 477
Output for 5.4.22
one 478; two 458; three 464
Output for 5.4.21
one 481; two 448; three 471
Output for 5.4.20
one 455; two 490; three 455
Output for 5.4.19
one 462; two 456; three 482
Output for 5.4.18
one 507; two 424; three 469
Output for 5.4.17
one 469; two 486; three 445
Output for 5.4.16
one 472; two 451; three 477
Output for 5.4.15
one 470; two 449; three 481
Output for 5.4.13
one 457; two 461; three 482
Output for 5.4.11
one 452; two 479; three 469
Output for 5.4.10
one 483; two 477; three 440
Output for 5.4.9
one 438; two 490; three 472
Output for 5.4.8
one 498; two 447; three 455
Output for 5.4.7
one 474; two 465; three 461
Output for 5.4.6
one 446; two 454; three 500
Output for 5.4.5
one 463; two 454; three 483
Output for 5.4.4
one 477; two 450; three 473
Output for 5.4.3
one 472; two 471; three 457
Output for 5.4.2
one 477; two 449; three 474
Output for 5.4.1
one 463; two 450; three 487
Output for 5.4.0
one 478; two 459; three 463
Output for 5.3.29
one 513; two 435; three 452
Output for 5.3.28
one 487; two 472; three 441
Output for 5.3.27
one 467; two 441; three 492
Output for 5.3.26
one 461; two 475; three 464
Output for 5.3.25
one 488; two 460; three 452
Output for 5.3.24
one 488; two 435; three 477
Output for 5.3.23
one 449; two 451; three 500
Output for 5.3.22
one 440; two 476; three 484
Output for 5.3.21
one 446; two 469; three 485
Output for 5.3.20
one 471; two 479; three 450
Output for 5.3.19
one 478; two 471; three 451
Output for 5.3.18
one 508; two 458; three 434
Output for 5.3.17
one 475; two 465; three 460
Output for 5.3.16
one 472; two 455; three 473
Output for 5.3.15
one 448; two 470; three 482
Output for 5.3.14
one 494; two 454; three 452
Output for 5.3.13
one 451; two 466; three 483
Output for 5.3.12
one 468; two 470; three 462
Output for 5.3.11
one 461; two 483; three 456
Output for 5.3.10
one 486; two 484; three 430
Output for 5.3.9
one 487; two 444; three 469
Output for 5.3.8
one 480; two 468; three 452
Output for 5.3.7
one 448; two 481; three 471
Output for 5.3.6
one 468; two 471; three 461
Output for 5.3.5
one 459; two 470; three 471
Output for 5.2.1, 5.3.4
one 466; two 473; three 461
Output for 5.3.3
one 481; two 482; three 437
Output for 5.3.2
one 460; two 483; three 457
Output for 5.3.1
one 453; two 469; three 478
Output for 5.3.0
one 482; two 472; three 446
Output for 5.2.17
one 447; two 456; three 497
Output for 5.2.16
one 478; two 468; three 454
Output for 5.2.15
one 473; two 474; three 453
Output for 5.2.14
one 439; two 498; three 463
Output for 5.2.13
one 469; two 442; three 489
Output for 5.2.12
one 436; two 511; three 453
Output for 5.2.11
one 465; two 471; three 464
Output for 5.2.10
one 451; two 486; three 463
Output for 5.0.5, 5.2.9
one 463; two 473; three 464
Output for 5.2.8
one 482; two 430; three 488
Output for 5.2.7
one 484; two 453; three 463
Output for 5.2.6
one 463; two 466; three 471
Output for 5.2.5
one 481; two 432; three 487
Output for 5.2.4
one 469; two 482; three 449
Output for 5.2.3
one 470; two 514; three 416
Output for 5.2.2
one 462; two 476; three 462
Output for 5.2.0
one 462; two 475; three 463
Output for 5.1.6
one 453; two 487; three 460
Output for 5.1.5
one 480; two 467; three 453
Output for 5.1.4
one 458; two 483; three 459
Output for 5.1.3
one 445; two 500; three 455
Output for 5.1.2
one 459; two 480; three 461
Output for 5.1.1
one 498; two 459; three 443
Output for 5.1.0
one 485; two 476; three 439
Output for 5.0.4
one 430; two 480; three 490
Output for 4.4.8, 5.0.3
one 462; two 448; three 490
Output for 5.0.2
one 460; two 470; three 470
Output for 5.0.1
one 463; two 483; three 454
Output for 5.0.0
one 465; two 450; three 485
Output for 4.4.9
one 470; two 452; three 478
Output for 4.4.7
one 459; two 489; three 452
Output for 4.4.6
one 471; two 449; three 480
Output for 4.4.5
one 469; two 477; three 454
Output for 4.4.4
one 465; two 439; three 496
Output for 4.4.3
one 465; two 484; three 451
Output for 4.4.2
one 485; two 441; three 474
Output for 4.4.1
one 454; two 479; three 467
Output for 4.4.0
one 434; two 492; three 474
Output for 4.3.11
one 468; two 438; three 494
Output for 4.3.10
one 440; two 496; three 464
Output for 4.3.9
one 490; two 465; three 445
Output for 4.3.8
one 447; two 480; three 473
Output for 4.3.7
one 455; two 450; three 495
Output for 4.3.5
one 486; two 436; three 478
Output for 4.3.4
one 471; two 447; three 482
Output for 4.3.3
one 438; two 455; three 507
Output for 4.3.2
one 444; two 496; three 460
Output for 4.3.1
one 455; two 458; three 487
Output for 4.3.0
one 479; two 461; three 460