3v4l.org

run code in 300+ PHP versions simultaneously
<?php $times = 1000 * 100 * 10; $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);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.2.100.0180.00414.68
7.2.90.0100.01014.67
7.2.80.0140.00514.40
7.2.70.0120.01614.89
7.2.60.0350.01214.55
7.2.50.0170.00314.80
7.1.220.0400.01213.93
7.1.210.0750.00013.93
7.1.200.0140.00313.94
7.1.190.0480.01013.95
7.1.180.0120.00813.84
7.1.170.2240.00913.93
7.0.310.0070.01513.61
5.6.380.0000.01814.18
5.6.370.0110.01114.34

preferences:
34.91 ms | 400 KiB | 5 Q