3v4l.org

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