3v4l.org

run code in 300+ PHP versions simultaneously
<?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}";

preferences:
37.98 ms | 402 KiB | 5 Q