3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array(1,2,3); print_r($a); $b = array_map(function($x) { return 2*$x }, $a); print_r($b); ?>

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.20.0330.07720.16
7.0.10.0070.04320.19
7.0.00.0070.08720.32
5.6.160.0030.04020.46
5.6.150.0000.09018.16
5.6.140.0070.07318.28
5.6.130.0030.08318.25
5.6.120.0030.04320.98
5.6.110.0100.06720.96
5.6.100.0030.04020.98
5.6.90.0030.04321.10
5.6.80.0030.06720.51
5.5.300.0070.08018.03
5.5.290.0100.05718.09
5.5.280.0030.08720.84
5.5.270.0100.03720.95
5.5.260.0070.05020.96
5.5.250.0030.07020.78
5.5.240.0200.07020.13

preferences:
137.17 ms | 1398 KiB | 7 Q