3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0; for($i=1; $i<=10000;$i++) { $rand = random_int(1, 200); if ($rand == 1) $a++; } echo $a;

preferences:
33.23 ms | 402 KiB | 5 Q