3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Initial Configuration class SomeClass { function f() { } } // Test Source function Test6_1() { global $x; /* The Test */ $t = microtime(true); $size = count($x); $i = 0; while($i < 1000) { $obj = new SomeClass(); ++$i; } return (microtime(true) - $t); } ?>

preferences:
32.76 ms | 402 KiB | 5 Q