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.04320.10
7.0.00.0070.04320.30
5.6.160.0100.08320.56
5.6.150.0030.07718.15
5.6.140.0030.08018.28
5.6.130.0070.05018.19
5.6.120.0030.04721.00
5.6.110.0030.07721.01
5.6.100.0070.08021.13
5.6.90.0170.07321.10
5.6.80.0030.04320.38
5.5.300.0030.04318.04
5.5.290.0030.08017.94
5.5.280.0030.07720.78
5.5.270.0030.05720.87
5.5.260.0200.07020.97
5.5.250.0070.08320.58
5.5.240.0130.07320.15

preferences:
137.93 ms | 1394 KiB | 7 Q