3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function method() { } } $obj = new Test; $ref = new ReflectionMethod($test, 'method'); echo "Starting loop..."; $start = microtime(true); for ($i=0; $i<1e5; $i++) { $ref->invokeArgs($obj, array()); } echo "Took ", number_format((microtime(true)-$start)*1e3, 3), " ms";

preferences:
32.44 ms | 402 KiB | 5 Q