3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function read() { } } $test = new Test(); $i = 0; $start = microtime(true); while( $i < 1000000) { method_exists($test, 'read'); $i++; } $end = microtime(true); echo PHP_EOL . $end - $start;

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.110.0170.03914.68
7.2.100.0590.06014.57
7.2.90.0100.04514.57
7.2.80.0790.03714.68
7.2.70.0140.06514.98
7.2.60.0350.05715.02
7.2.50.0800.03915.26
7.2.40.0570.04815.06
7.2.30.0320.03914.63
7.2.20.0200.07314.91
7.2.10.0110.05014.90
7.2.00.0160.04714.69
7.1.230.0500.03814.02
7.1.220.0850.04013.72
7.1.210.0530.04413.80
7.1.200.0260.05013.59
7.1.190.0180.06513.68
7.1.180.1020.05814.13
7.1.170.0070.06813.62
7.1.160.0110.04413.78
7.1.150.0290.05813.88
7.1.140.0880.04513.47
7.1.130.0990.05613.86
7.1.120.0320.04913.96
7.1.110.0110.05013.66
7.1.100.0710.05313.72
7.1.90.0400.05313.93
7.1.80.0930.04613.85
7.1.70.0110.07513.80
7.1.60.0510.06831.70
7.1.50.0310.09131.87
7.1.40.1030.06031.82
7.1.30.0300.07331.75
7.1.20.0750.04431.46
7.1.10.0050.05613.72
7.1.00.0100.04414.00
5.6.380.0160.18914.43

preferences:
26.5 ms | 401 KiB | 5 Q