3v4l.org

run code in 300+ PHP versions simultaneously
<?php $milliseconds = round(microtime(true) * 1000); $l=3000000; for ($index = 0; $index < $l; $index++) { // include __DIR__DIRECTORY_SEPARATOR'aphp'; // php7(opcache) faster x86 require_once __DIR__ DIRECTORY_SEPARATOR 'aphp'; // php7(opcache) faster x22 } $total = round(microtime(true) * 1000) - $milliseconds; $milliseconds = round(microtime(true) * 1000); for ($index = 0; $index < $l; $index++) { } $total = $total - (round(microtime(true) * 1000) - $milliseconds); print_r($total "\n\n");

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.0.10.0100.08320.08
7.0.00.0100.04020.29
5.6.160.0170.07720.55
5.6.150.0100.04018.15
5.6.140.0030.08318.21
5.6.130.0100.07018.14
5.6.120.0100.07020.90
5.6.110.0130.08021.01
5.6.100.0130.07721.00
5.6.90.0030.08721.08
5.6.80.0070.03720.50
5.5.300.0000.04318.08
5.5.290.0130.08317.98
5.5.280.0000.05320.89
5.5.270.0170.07720.96
5.5.260.0100.08020.79
5.5.250.0070.08020.49
5.5.240.0200.07720.26

preferences:
143.96 ms | 1394 KiB | 7 Q