3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = base64_encode(md5('')); $start = microtime(true); for ($i = 0; $i < 10000000; ++$i) { $soFar = ''; $result = []; foreach (str_split($value) as $char) { $soFar .= $char; $result[] = $soFar; } } $end = microtime(true); echo $i/($end - $start), ' op/s'; var_dump($result);
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0

Process exited with code 137.
Output for 5.3.7 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/j0q2S on line 7
Process exited with code 255.