3v4l.org

run code in 300+ PHP versions simultaneously
<?php $times = 1000 * 100; $obj = new stdClass; $time = microtime(true); for ($i = 0; $i <= $times; $i++) echo spl_object_hash($obj); $time = microtime(true) - $time; printf('spl_object_hash: %.4f', $time); $time = microtime(true); for ($i = 0; $i <= $times; $i++) echo get_class($obj); $time = microtime(true) - $time; printf('get_class: %.4f', $time);

preferences:
30.18 ms | 402 KiB | 5 Q