3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array_fill(0, 20000, 0); $time = microtime(true); for ($i = 0; $i <= 100000; $i++) { array_merge($array); } var_dump(microtime(true) - $time); $time = microtime(true); for ($i = 0; $i <= 100000; $i++) { array_values($array); } var_dump(microtime(true) - $time);
based on flUhf
Output for 4.3.0 - 7.1.7

Process exited with code 137.