3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function isPrime($number) { $max = floor(sqrt($number)); for ($i=1; $i < $max; $i++) { if ($number % $i == 0) return false; } return true; } do { $i = mt_rand(100, 999); } while ( ! isPrime($i) ); var_dump($i);
Output for 7.0.20 - 7.2.0

Process exited with code 137.