3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 0; for($i=1; $i<=10000;$i++) { $rand = random_int(1, 200); if ($a === 1) $a++; } echo $a;
based on F2Nqd
Output for hhvm-3.15.4, 7.0.0 - 7.2.6
0
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function random_int() in /in/aicDa on line 5
Process exited with code 255.