3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 1000000; class ValueObject() {} $time = microtime(true); for ($i = 0; $i < $count; $i++) { $item = new ValueObject(); } $spentTime = microtime(true) - $time; echo 'create array test took ' . number_format($spentTime, 3) . ' seconds';
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected '(', expecting '{' in /in/LHZVv on line 5
Process exited with code 255.