3v4l.org

run code in 300+ PHP versions simultaneously
<?hh $foo = $x ==> $x + 1; $foo(12); // returns 13 $squared = array_map($x ==> $x*$x, array(1,2,3)); var_dump($squared);

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)
8.3.60.0060.01216.50
8.3.50.0050.01021.92
8.3.40.0110.00818.54
8.3.30.0070.00719.07
8.3.20.0040.00420.09
8.3.10.0050.00323.53
8.3.00.0090.00019.65
8.2.180.0040.01116.50
8.2.170.0110.01122.96
8.2.160.0130.00022.20
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0090.00020.96
8.2.110.0060.00322.16
8.2.100.0070.00417.78
8.2.90.0030.00519.23
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0000.00717.80
8.2.50.0050.00518.07
8.2.40.0000.00818.02
8.2.30.0000.00918.09
8.2.20.0000.00717.52
8.2.10.0050.00317.98
8.2.00.0080.00019.34
8.1.280.0030.01025.92
8.1.270.0080.00023.97
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0080.00418.95
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0050.00517.23
8.1.190.0040.00416.98
8.1.180.0040.00418.10
8.1.170.0080.00018.51
8.1.160.0050.00221.86
8.1.150.0000.00718.61
8.1.140.0000.00717.30
8.1.130.0070.00017.66
8.1.120.0050.00217.34
8.1.110.0000.00717.24
8.1.100.0040.00417.36
8.1.90.0050.00217.36
8.1.80.0040.00417.30
8.1.70.0050.00317.12
8.1.60.0080.00017.32
8.1.50.0000.00917.36
8.1.40.0000.00717.33
8.1.30.0050.00317.36
8.1.20.0080.00017.51
8.1.10.0000.00717.32
8.1.00.0030.00617.35
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0070.00018.35
8.0.270.0030.00317.18
8.0.260.0000.00617.11
8.0.250.0000.00716.78
8.0.240.0000.00716.69
8.0.230.0050.00216.85
8.0.220.0030.00316.67
8.0.210.0030.00316.78
8.0.200.0000.00616.79
8.0.190.0050.00216.65
8.0.180.0030.00616.64
8.0.170.0000.00816.61
8.0.160.0070.00016.68
8.0.150.0030.00316.62
8.0.140.0070.00016.61
8.0.130.0030.00313.34
8.0.120.0000.00816.73
8.0.110.0000.00716.80
8.0.100.0030.00516.73
8.0.90.0000.00716.64
8.0.80.0070.01116.68
8.0.70.0040.00416.82
8.0.60.0080.00016.77
8.0.50.0060.00316.65
8.0.30.0100.01116.74
8.0.20.0120.00717.40
8.0.10.0000.00716.72
8.0.00.0130.00316.50
7.4.330.0000.00515.03
7.4.320.0060.00016.39
7.4.300.0040.00416.36
7.4.290.0000.00716.22
7.4.280.0070.00016.45
7.4.270.0000.00816.44
7.4.260.0000.00616.45
7.4.250.0040.00316.40
7.4.240.0030.00416.35
7.4.230.0020.00516.36
7.4.220.0100.00716.36
7.4.210.0090.00616.40
7.4.200.0000.00716.44
7.4.160.0030.01316.48
7.4.150.0030.01317.40
7.4.140.0110.00817.86
7.4.130.0120.00716.43
7.4.120.0100.00916.35
7.4.110.0100.00716.28
7.4.100.0130.01016.51
7.4.90.0030.01316.38
7.4.80.0140.01019.39
7.4.70.0090.00816.44
7.4.60.0140.00716.52
7.4.50.0040.00416.51
7.4.40.0130.00316.49
7.4.30.0100.00616.38
7.3.330.0050.00013.13
7.3.320.0030.00313.03
7.3.310.0050.00216.22
7.3.300.0060.00016.21
7.3.290.0070.00716.03
7.3.280.0110.00716.12
7.3.270.0100.00717.40
7.3.260.0110.00716.06
7.3.250.0140.01016.30
7.3.240.0030.01316.41
7.3.230.0100.01316.39
7.3.210.0100.00716.50
7.3.200.0040.01419.39
7.3.190.0070.01316.52
7.3.180.0130.00316.18
7.3.170.0120.00916.27
7.3.160.0040.01116.31
7.2.330.0120.00916.28
7.2.320.0080.00816.45
7.2.310.0040.01216.59
7.2.300.0070.01016.43
7.2.290.0060.01016.30
5.4.280.0030.06719.00
5.4.270.0130.06719.23
5.4.260.0070.04718.85
5.4.250.0030.08319.23
5.4.240.0030.06718.86
5.4.230.0100.06318.93
5.4.220.0030.07318.86
5.4.210.0070.08319.09
5.4.200.0170.06318.91
5.4.190.0130.05719.15
5.4.180.0070.07018.97
5.4.170.0030.04718.99
5.4.160.0100.07318.90
5.4.150.0100.04318.96
5.4.140.0100.07016.51
5.4.130.0070.03716.39
5.4.120.0070.07716.41
5.4.110.0070.04716.68
5.4.100.0100.04016.43
5.4.90.0130.06316.30
5.4.80.0030.07316.28
5.4.70.0100.07016.28
5.4.60.0030.04316.25
5.4.50.0170.05316.24
5.4.40.0130.06716.28
5.4.30.0130.04316.50
5.4.20.0100.07016.49
5.4.10.0100.07316.41
5.4.00.0130.06315.82
5.3.290.0000.04014.60
5.3.280.0030.05014.53
5.3.270.0000.08014.48
5.3.260.0030.04314.62
5.3.250.0130.07014.56
5.3.240.0170.07014.53
5.3.230.0030.04014.56
5.3.220.0100.07314.65
5.3.210.0030.05714.50
5.3.200.0030.07314.65
5.3.190.0000.06014.46
5.3.180.0170.06314.50
5.3.170.0070.07314.34
5.3.160.0130.06714.50
5.3.150.0130.06714.50
5.3.140.0070.04314.49
5.3.130.0100.06314.50
5.3.120.0070.04314.48
5.3.110.0070.05714.47
5.3.100.0100.04713.96
5.3.90.0100.05313.95
5.3.80.0070.07713.93
5.3.70.0000.08313.82
5.3.60.0100.06713.94
5.3.50.0130.05313.88
5.3.40.0070.07313.88
5.3.30.0070.07013.89
5.3.20.0030.03713.61
5.3.10.0030.04313.61
5.3.00.0130.06713.74

preferences:
40.43 ms | 401 KiB | 5 Q