3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0

Process exited with code 137.
Output for hhvm-3.12.0
float(0.0098888874053955)
Process exited with code 137.
Output for hhvm-3.10.0
float(0.011291980743408)
Process exited with code 137.