3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $one = $two = $three = 0; for($i=0;$i<1500;$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 CM1Ki
Output for 7.1.0
one 518; two 496; three 486
Output for 5.3.9, 7.0.14
one 501; two 506; three 493
Output for 7.0.6
one 521; two 490; three 489
Output for 7.0.5
one 483; two 492; three 525
Output for 7.0.4
one 506; two 491; three 503
Output for 7.0.3
one 489; two 513; three 498
Output for 7.0.2
one 503; two 484; three 513
Output for 7.0.1
one 519; two 507; three 474
Output for 7.0.0
one 518; two 507; three 475
Output for hhvm-3.12.0
one 506; two 500; three 494
Output for 5.2.0, hhvm-3.10.0
one 508; two 499; three 493
Output for 5.6.28
one 518; two 488; three 494
Output for 5.6.21
one 488; two 510; three 502
Output for 5.6.20
one 499; two 535; three 466
Output for 5.6.19
one 517; two 488; three 495
Output for 5.6.18
one 525; two 488; three 487
Output for 5.6.17
one 488; two 482; three 530
Output for 5.6.16
one 491; two 505; three 504
Output for 5.6.15
one 465; two 528; three 507
Output for 5.6.14
one 478; two 509; three 513
Output for 5.6.13
one 532; two 499; three 469
Output for 5.6.12
one 512; two 480; three 508
Output for 5.6.11
one 505; two 465; three 530
Output for 5.6.10
one 488; two 521; three 491
Output for 5.6.9
one 501; two 495; three 504
Output for 5.6.8
one 521; two 496; three 483
Output for 5.5.35
one 489; two 506; three 505
Output for 5.5.34
one 496; two 482; three 522
Output for 5.5.33
one 524; two 485; three 491
Output for 5.5.32
one 513; two 482; three 505
Output for 5.5.31
one 521; two 487; three 492
Output for 5.5.30
one 477; two 509; three 514
Output for 5.5.29
one 491; two 532; three 477
Output for 5.5.28
one 509; two 479; three 512
Output for 5.5.27
one 494; two 492; three 514
Output for 5.5.26
one 497; two 492; three 511
Output for 5.5.25
one 502; two 509; three 489
Output for 5.5.24
one 517; two 517; three 466
Output for 5.4.45
one 469; two 514; three 517
Output for 5.4.44
one 485; two 524; three 491
Output for 5.4.43
one 479; two 509; three 512
Output for 5.4.42
one 515; two 519; three 466
Output for 5.4.41
one 469; two 516; three 515
Output for 5.4.40
one 512; two 465; three 523
Output for 5.4.39
one 476; two 521; three 503
Output for 5.4.38
one 504; two 505; three 491
Output for 5.4.37
one 505; two 494; three 501
Output for 5.4.36
one 480; two 522; three 498
Output for 5.4.35
one 517; two 483; three 500
Output for 5.4.34
one 494; two 482; three 524
Output for 5.4.32
one 496; two 501; three 503
Output for 5.4.31
one 506; two 496; three 498
Output for 5.4.30
one 498; two 509; three 493
Output for 5.4.29
one 510; two 500; three 490
Output for 5.4.28
one 476; two 507; three 517
Output for 5.4.27
one 494; two 501; three 505
Output for 5.4.26
one 508; two 469; three 523
Output for 5.4.25
one 506; two 478; three 516
Output for 5.4.24
one 500; two 495; three 505
Output for 5.4.23
one 466; two 505; three 529
Output for 5.4.22
one 513; two 503; three 484
Output for 5.4.21
one 532; two 504; three 464
Output for 5.4.20
one 494; two 507; three 499
Output for 5.4.19
one 477; two 527; three 496
Output for 5.4.18
one 527; two 488; three 485
Output for 5.4.17
one 537; two 470; three 493
Output for 5.4.16
one 529; two 484; three 487
Output for 5.4.15
one 525; two 476; three 499
Output for 5.4.14
one 468; two 528; three 504
Output for 5.4.13
one 515; two 475; three 510
Output for 5.4.12
one 506; two 507; three 487
Output for 5.4.11
one 522; two 488; three 490
Output for 5.4.10
one 490; two 465; three 545
Output for 5.4.9
one 511; two 492; three 497
Output for 5.4.8
one 503; two 467; three 530
Output for 5.4.7
one 513; two 484; three 503
Output for 5.4.6
one 502; two 502; three 496
Output for 5.4.5
one 457; two 521; three 522
Output for 5.4.4
one 492; two 505; three 503
Output for 5.4.3
one 453; two 572; three 475
Output for 5.4.2
one 482; two 509; three 509
Output for 5.4.1
one 519; two 462; three 519
Output for 5.4.0
one 477; two 515; three 508
Output for 5.3.29
one 478; two 512; three 510
Output for 5.3.28
one 512; two 475; three 513
Output for 5.3.27
one 495; two 503; three 502
Output for 5.3.26
one 495; two 520; three 485
Output for 5.3.25
one 486; two 528; three 486
Output for 5.3.24
one 482; two 517; three 501
Output for 5.3.23
one 482; two 515; three 503
Output for 5.3.22
one 509; two 517; three 474
Output for 5.3.21
one 539; two 497; three 464
Output for 5.3.20
one 506; two 462; three 532
Output for 5.3.19
one 482; two 510; three 508
Output for 5.3.18
one 502; two 500; three 498
Output for 5.3.17
one 495; two 500; three 505
Output for 5.3.16
one 486; two 527; three 487
Output for 5.3.15
one 492; two 506; three 502
Output for 5.3.14
one 498; two 479; three 523
Output for 5.3.13
one 495; two 543; three 462
Output for 5.3.12
one 532; two 477; three 491
Output for 5.3.11
one 497; two 477; three 526
Output for 5.3.10
one 505; two 504; three 491
Output for 5.3.8
one 505; two 507; three 488
Output for 5.3.7
one 522; two 473; three 505
Output for 5.3.6
one 500; two 497; three 503
Output for 5.3.5
one 512; two 500; three 488
Output for 5.3.4
one 498; two 478; three 524
Output for 5.3.3
one 517; two 503; three 480
Output for 5.3.2
one 500; two 490; three 510
Output for 5.3.1
one 483; two 497; three 520
Output for 5.3.0
one 512; two 507; three 481
Output for 5.2.17
one 512; two 498; three 490
Output for 5.2.16
one 511; two 510; three 479
Output for 5.2.15
one 512; two 503; three 485
Output for 5.2.14
one 496; two 521; three 483
Output for 5.2.13
one 471; two 518; three 511
Output for 5.2.12
one 514; two 474; three 512
Output for 5.2.11
one 480; two 496; three 524
Output for 5.2.10
one 524; two 455; three 521
Output for 5.2.9
one 497; two 496; three 507
Output for 5.2.8
one 487; two 503; three 510
Output for 5.2.7
one 506; two 479; three 515
Output for 5.2.6
one 507; two 512; three 481
Output for 5.2.5
one 475; two 496; three 529
Output for 5.2.4
one 498; two 501; three 501
Output for 5.2.3
one 507; two 496; three 497
Output for 5.2.2
one 483; two 481; three 536
Output for 5.2.1
one 516; two 489; three 495
Output for 5.1.6
one 555; two 485; three 460
Output for 5.1.5
one 500; two 493; three 507
Output for 5.1.4
one 497; two 459; three 544
Output for 5.1.3
one 470; two 511; three 519
Output for 5.1.2
one 504; two 488; three 508
Output for 5.1.1
one 511; two 498; three 491
Output for 5.1.0
one 503; two 498; three 499
Output for 5.0.5
one 481; two 499; three 520
Output for 5.0.4
one 501; two 512; three 487
Output for 5.0.3
one 478; two 481; three 541
Output for 5.0.2
one 494; two 540; three 466
Output for 5.0.1
one 492; two 514; three 494
Output for 5.0.0
one 495; two 508; three 497
Output for 4.4.9
one 491; two 509; three 500
Output for 4.4.8
one 493; two 523; three 484
Output for 4.4.7
one 506; two 508; three 486
Output for 4.4.6
one 500; two 506; three 494
Output for 4.4.5
one 497; two 483; three 520
Output for 4.4.4
one 481; two 516; three 503
Output for 4.4.3
one 489; two 503; three 508
Output for 4.4.2
one 499; two 492; three 509
Output for 4.4.1
one 511; two 487; three 502
Output for 4.4.0
one 485; two 533; three 482
Output for 4.3.11
one 501; two 497; three 502
Output for 4.3.10
one 511; two 497; three 492
Output for 4.3.9
one 508; two 501; three 491
Output for 4.3.8
one 525; two 484; three 491
Output for 4.3.7
one 514; two 511; three 475
Output for 4.3.6
one 484; two 523; three 493
Output for 4.3.5
one 496; two 499; three 505
Output for 4.3.4
one 540; two 464; three 496
Output for 4.3.3
one 504; two 486; three 510
Output for 4.3.2
one 504; two 517; three 479
Output for 4.3.1
one 507; two 497; three 496
Output for 4.3.0
one 545; two 465; three 490