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); // $squared is array(1,4,9)

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.0100.01016.38
8.3.50.0070.00822.06
8.3.40.0070.00718.77
8.3.30.0090.00918.96
8.3.20.0080.00020.04
8.3.10.0090.00023.66
8.3.00.0050.00220.76
8.2.180.0150.00316.32
8.2.170.0150.00022.96
8.2.160.0100.00620.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0110.00720.89
8.2.110.0100.00722.31
8.2.100.0040.00819.45
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0000.00817.91
8.2.50.0050.00318.07
8.2.40.0040.00419.82
8.2.30.0050.00218.21
8.2.20.0040.00417.48
8.2.10.0070.00017.91
8.2.00.0060.00317.57
8.1.280.0140.00325.92
8.1.270.0090.00022.02
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0040.01521.94
8.1.230.0000.01119.15
8.1.220.0070.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00817.22
8.1.190.0000.00816.75
8.1.180.0000.00818.10
8.1.170.0040.00418.17
8.1.160.0000.00721.85
8.1.150.0050.00218.54
8.1.140.0040.00417.21
8.1.130.0000.00817.67
8.1.120.0000.00717.21
8.1.110.0040.00417.21
8.1.100.0040.00417.33
8.1.90.0000.00717.34
8.1.80.0040.00417.19
8.1.70.0070.00017.25
8.1.60.0000.00817.35
8.1.50.0040.00417.41
8.1.40.0000.00717.40
8.1.30.0050.00317.48
8.1.20.0000.00817.46
8.1.10.0040.00417.33
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0030.00317.18
8.0.280.0070.00018.36
8.0.270.0000.00717.14
8.0.260.0030.00317.18
8.0.250.0030.00316.69
8.0.240.0080.00316.82
8.0.230.0000.00716.80
8.0.220.0040.00416.85
8.0.210.0080.00016.67
8.0.200.0030.00616.70
8.0.190.0040.00416.77
8.0.180.0030.00316.82
8.0.170.0070.00016.84
8.0.160.0030.00316.80
8.0.150.0000.00716.71
8.0.140.0040.00416.75
8.0.130.0060.00013.38
8.0.120.0030.00616.74
8.0.110.0040.00416.73
8.0.100.0080.00016.75
8.0.90.0000.00816.77
8.0.80.0030.01416.78
8.0.70.0000.00816.57
8.0.60.0000.00716.74
8.0.50.0040.00416.68
8.0.30.0140.00617.15
8.0.20.0070.01117.40
8.0.10.0050.00216.71
8.0.00.0060.01116.69
7.4.330.0000.00515.00
7.4.320.0060.00016.42
7.4.300.0030.00316.46
7.4.290.0000.00916.44
7.4.280.0030.00316.34
7.4.270.0070.00016.36
7.4.260.0000.00716.34
7.4.250.0000.00716.37
7.4.240.0000.00716.36
7.4.230.0050.00516.27
7.4.220.0090.00916.28
7.4.210.0070.00816.38
7.4.200.0070.00016.46
7.4.160.0160.00616.36
7.4.150.0080.00817.40
7.4.140.0110.00917.86
7.4.130.0100.00816.31
7.4.120.0110.00716.37
7.4.110.0160.00416.32
7.4.100.0030.01716.37
7.4.90.0090.00916.33
7.4.80.0100.01019.39
7.4.70.0040.01116.27
7.4.60.0100.01016.38
7.4.50.0000.00916.20
7.4.40.0130.00316.36
7.4.30.0130.00916.39
7.3.330.0000.00513.09
7.3.320.0030.00313.27
7.3.310.0000.00716.13
7.3.300.0030.00316.14
7.3.290.0100.00316.12
7.3.280.0090.01116.13
7.3.270.0180.00617.40
7.3.260.0090.00816.61
7.3.250.0090.00816.14
7.3.240.0100.00916.13
7.3.230.0110.00716.46
7.3.210.0120.00616.18
7.3.200.0060.00919.39
7.3.190.0040.01216.23
7.3.180.0060.00916.46
7.3.170.0070.01316.36
7.3.160.0090.00916.44
7.2.330.0120.00616.30
7.2.320.0060.01216.43
7.2.310.0170.00016.44
7.2.300.0070.01116.24
7.2.290.0110.00516.27
5.4.300.0170.03719.22
5.4.290.0300.07019.20
5.4.280.0170.07319.22
5.4.270.0230.07019.09
5.4.260.0270.05319.13
5.4.250.0200.04019.13
5.4.240.0200.06018.84
5.4.230.0230.04019.25
5.4.220.0330.06719.08
5.4.210.0200.04718.85
5.4.200.0170.04019.14
5.4.190.0230.06719.07
5.4.180.0200.04719.05
5.4.170.0200.04019.12
5.4.160.0470.04719.04
5.4.150.0230.04019.14
5.4.140.0570.05316.32
5.4.130.0300.03016.40
5.4.120.0270.04316.65
5.4.110.0200.04016.28
5.4.100.0200.06316.36
5.4.90.0330.04316.35
5.4.80.0270.03716.44
5.4.70.0230.05316.23
5.4.60.0130.04716.38
5.4.50.0230.05716.55
5.4.40.0530.03716.18
5.4.30.0300.06316.43
5.4.20.0230.03716.34
5.4.10.0330.06016.50
5.4.00.0170.07315.94
5.3.290.0300.07014.60
5.3.280.0170.04014.63
5.3.270.0470.05314.61
5.3.260.0200.03714.54
5.3.250.0230.04314.55
5.3.240.0230.07314.43
5.3.230.0270.05314.58
5.3.220.0300.05014.42
5.3.210.0200.05714.43
5.3.200.0100.05014.46
5.3.190.0170.03714.51
5.3.180.0230.03014.51
5.3.170.0230.05714.52
5.3.160.0200.04014.42
5.3.150.0170.04014.54
5.3.140.0270.07714.65
5.3.130.0200.05014.38
5.3.120.0270.04714.40
5.3.110.0230.04714.55
5.3.100.0230.04013.88
5.3.90.0270.07013.85
5.3.80.0230.04713.81
5.3.70.0200.04013.96
5.3.60.0200.05313.99
5.3.50.0270.05713.88
5.3.40.0230.03713.71
5.3.30.0200.03713.75
5.3.20.0370.03313.75
5.3.10.0330.05013.59
5.3.00.0200.04013.48

preferences:
38.72 ms | 401 KiB | 5 Q