3v4l.org

run code in 300+ PHP versions simultaneously
<? $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.40.0120.00918.55
8.3.30.0030.01019.02
8.3.20.0080.00020.02
8.3.10.0090.00023.67
8.3.00.0030.00619.26
8.2.170.0100.01022.96
8.2.160.0130.00020.38
8.2.150.0100.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.31
8.2.110.0090.00320.52
8.2.100.0110.00017.78
8.2.90.0080.00017.63
8.2.80.0030.00517.97
8.2.70.0080.00017.78
8.2.60.0070.00017.80
8.2.50.0040.00418.10
8.2.40.0060.00322.14
8.2.30.0000.00719.84
8.2.20.0000.00717.59
8.2.10.0030.00517.92
8.2.00.0000.00917.53
8.1.270.0160.00323.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.13
8.1.230.0000.01219.08
8.1.220.0000.00917.74
8.1.210.0030.00618.77
8.1.200.0040.00417.11
8.1.190.0000.00917.11
8.1.180.0040.00418.10
8.1.170.0050.00318.32
8.1.160.0030.00521.84
8.1.150.0000.00818.51
8.1.140.0070.00017.29
8.1.130.0070.00017.80
8.1.120.0000.00817.38
8.1.110.0040.00417.31
8.1.100.0040.00417.27
8.1.90.0040.00417.34
8.1.80.0000.00717.24
8.1.70.0030.00317.33
8.1.60.0030.00917.46
8.1.50.0080.00017.28
8.1.40.0040.00417.37
8.1.30.0030.00617.44
8.1.20.0000.00717.40
8.1.10.0030.00517.37
8.1.00.0030.00617.37
8.0.300.0050.00221.21
8.0.290.0000.00816.58
8.0.280.0030.00518.28
8.0.270.0000.00717.09
8.0.260.0030.00317.18
8.0.250.0030.00316.72
8.0.240.0070.00316.79
8.0.230.0070.00016.73
8.0.220.0070.00016.66
8.0.210.0040.00416.64
8.0.200.0030.00316.81
8.0.190.0040.00416.85
8.0.180.0040.00716.77
8.0.170.0000.00816.76
8.0.160.0030.00616.82
8.0.150.0050.00216.61
8.0.140.0070.00016.74
8.0.130.0030.00313.42
8.0.120.0060.00316.67
8.0.110.0040.00416.66
8.0.100.0000.00816.80
8.0.90.0000.00716.69
8.0.80.0060.00916.72
8.0.70.0040.00416.75
8.0.60.0070.00316.56
8.0.50.0030.00316.74
8.0.30.0130.01216.94
8.0.20.0090.00917.40
8.0.10.0070.00016.78
8.0.00.0170.00316.53
7.4.330.0000.00515.12
7.4.320.0000.00616.48
7.4.300.0000.00716.46
7.4.290.0070.00016.41
7.4.280.0030.00516.40
7.4.270.0040.00416.27
7.4.260.0000.00716.44
7.4.250.0040.00416.41
7.4.240.0030.00316.39
7.4.230.0030.00316.27
7.4.220.0130.01316.40
7.4.210.0080.00916.37
7.4.200.0030.00416.36
7.4.190.0000.00716.48
7.4.160.0110.00416.24
7.4.150.0030.01317.40
7.4.140.0070.01317.86
7.4.130.0110.01016.28
7.4.120.0050.01116.35
7.4.110.0040.01316.27
7.4.100.0110.00716.34
7.4.90.0120.01516.44
7.4.80.0080.00819.39
7.4.70.0060.00916.24
7.4.60.0070.01116.29
7.4.50.0040.00416.54
7.4.40.0130.00316.42
7.4.30.0090.00616.29
7.3.330.0040.00413.27
7.3.320.0050.00013.23
7.3.310.0030.00516.19
7.3.300.0000.00715.98
7.3.290.0130.00616.15
7.3.280.0070.01016.12
7.3.270.0030.01317.40
7.3.260.0150.00616.19
7.3.250.0070.01016.36
7.3.240.0090.00816.10
7.3.230.0070.01216.39
7.3.210.0120.01216.35
7.3.200.0040.02019.39
7.3.190.0090.01216.37
7.3.180.0070.01016.16
7.3.170.0040.01816.37
7.3.160.0100.00716.29
7.2.330.0160.02216.36
7.2.320.0090.01216.38
7.2.310.0060.01216.12
7.2.300.0050.01416.57
7.2.290.0100.00716.41
5.4.280.3070.03719.31
5.4.270.3000.03718.98
5.4.260.3100.03718.87
5.4.250.2670.03719.14
5.4.240.3030.03719.14
5.4.230.3230.03019.30
5.4.220.3030.04019.14
5.4.210.3070.04018.87
5.4.200.3200.03019.00
5.4.190.2970.05019.04
5.4.180.3100.03319.21
5.4.170.2770.04318.96
5.4.160.2830.04019.22
5.4.150.3070.03719.11
5.4.140.2930.03316.35
5.4.130.2800.03716.50
5.4.120.3030.04016.45
5.4.110.2900.03716.26
5.4.100.3000.02716.59
5.4.90.3130.03016.41
5.4.80.3200.03016.44
5.4.70.2970.03316.36
5.4.60.3070.03716.43
5.4.50.4100.02716.53
5.4.40.2870.04016.55
5.4.30.3200.03316.42
5.4.20.3100.04016.37
5.4.10.2870.03716.42
5.4.00.3130.04015.77
5.3.290.3170.04714.95
5.3.280.2930.04314.95
5.3.270.3130.04314.95
5.3.260.2930.03314.95
5.3.250.3400.03714.95
5.3.240.2900.03714.95
5.3.230.2870.04014.95
5.3.220.2070.03714.95
5.3.210.3130.03714.95
5.3.200.3200.03314.95
5.3.190.3070.04314.95
5.3.180.3030.04014.95
5.3.170.3270.03714.95
5.3.160.2970.03714.95
5.3.150.3030.04014.95
5.3.140.3170.03014.95
5.3.130.3400.04014.95
5.3.120.3100.04014.95
5.3.110.3170.04014.95
5.3.100.3070.03314.95
5.3.90.0700.05714.95
5.3.80.0030.04714.95
5.3.70.0000.05714.95
5.3.60.1130.04314.95
5.3.50.3170.03314.95
5.3.40.2870.03014.95
5.3.30.3030.03714.95
5.3.20.3200.03314.95
5.3.10.3170.03714.95
5.3.00.3170.03714.95

preferences:
41.6 ms | 400 KiB | 5 Q