3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = range(0, 100000); $keys = array_map(function ($x) { return chr(46+rand(0, 26)) . chr(46+rand(0, 26)) . chr(46+rand(0, 26)) . $x; }, $x); $vars = array_combine($keys, $x); $time = 0.0; for ($i = $runs = 100; $i-- > 0;) { $t = microtime(TRUE); extract($vars); $time += microtime(TRUE) - $t; } echo sprintf("%.4f", $time / $runs);

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.90.4510.30429.16
7.2.80.2300.29129.07
7.2.70.3050.29229.26
7.2.60.5460.29429.44
7.2.50.6350.27629.42
7.2.41.4000.26329.18
7.2.31.1880.26229.56
7.1.210.3950.67328.16
7.1.200.5590.36128.10
7.1.190.6040.72728.17
7.1.180.9460.59828.38
7.1.170.9450.56628.46
7.1.161.3980.16528.15
7.1.151.3400.12028.47
7.0.310.8540.67727.94
7.0.300.6700.67227.66
7.0.291.4730.07525.16
7.0.281.3700.50928.04

preferences:
34.11 ms | 401 KiB | 5 Q