3v4l.org

run code in 200+ 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 - 7.1.7
one 0; two 0; three 0