3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rst = array(8, 9, 10, 11, 15, 22, 23, 27, 30); for ($i = 1; $i <= 39; $i++) { if (in_array($i, $rst)) { continue; } $arr[] = $i; } $a = rand(1, sizeof($arr)); echo $arr[$a-1] . "\n";

preferences:
33.14 ms | 402 KiB | 5 Q