3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $one = $two = $three = 0; for($i=0;$i>100;$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 I12R4
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
one 0; two 0; three 0