3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $numberOfRandoms = 500; $uniques = array(); for($i = 0; $i < $numberOfRandoms - count($uniques); $i++) { $uniques[mt_rand(10000, 99999)] = true; } $uniques = array_keys($uniques); var_dump(count($uniques));
Output for 4.3.0 - 4.3.1, 4.3.3 - 5.3.4, 5.3.6 - 5.3.21, 5.3.23 - 5.3.24, 5.3.26 - 5.4.27, 5.4.29 - 5.4.34, 5.4.36 - 5.5.30, 5.5.32 - 5.6.15, 5.6.17 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
int(250)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.2, 5.3.5, 5.3.22, 5.3.25, 5.4.28, 5.4.35, 5.5.31, 5.6.16
int(249)