3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sum = function($l) { return function($r) use ($l) { return $l + $r; }; }; echo $sum(4)(2);

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.4.20.0070.01419.50
8.4.10.0000.00817.48
8.3.150.0110.00720.80
8.3.140.0040.00420.74
8.3.130.0080.00018.65
8.3.120.0030.00618.74
8.3.110.0100.01020.94
8.3.100.0000.01518.40
8.3.90.0040.01126.77
8.3.80.0060.00317.97
8.3.70.0070.01416.38
8.3.60.0030.01218.31
8.3.50.0090.00922.15
8.3.40.0160.00618.76
8.3.30.0070.00719.22
8.3.20.0000.00818.82
8.3.10.0040.00423.65
8.3.00.0040.00419.09
8.2.270.0150.00317.27
8.2.260.0040.01116.44
8.2.250.0000.00816.70
8.2.240.0060.00317.07
8.2.230.0080.00022.58
8.2.220.0060.00324.06
8.2.210.0050.00226.77
8.2.200.0070.00316.50
8.2.190.0110.00718.41
8.2.180.0050.01016.38
8.2.170.0090.00618.93
8.2.160.0080.00822.96
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0100.00019.77
8.2.110.0060.00322.20
8.2.100.0040.00718.16
8.2.90.0050.00219.17
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0050.00317.92
8.2.50.0050.00318.07
8.2.40.0040.00419.97
8.2.30.0080.00017.95
8.2.20.0080.00017.69
8.2.10.0000.00818.10
8.2.00.0050.00318.06
8.1.310.0100.00718.34
8.1.300.0030.00618.25
8.1.290.0060.00318.88
8.1.280.0000.01725.92
8.1.270.0040.00420.32
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00621.98
8.1.230.0100.00318.94
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00317.13
8.1.180.0040.00418.10
8.1.170.0080.00018.53
8.1.160.0040.00421.97
8.1.150.0050.00218.89
8.1.140.0000.00717.45
8.1.130.0020.00517.94
8.1.120.0000.00717.46
8.1.110.0070.00017.47
8.1.100.0070.00017.29
8.1.90.0040.00317.46
8.1.80.0070.00017.45
8.1.70.0000.00717.45
8.1.60.0040.00417.64
8.1.50.0030.00717.51
8.1.40.0030.00617.55
8.1.30.0060.00317.58
8.1.20.0070.00017.68
8.1.10.0040.00417.56
8.1.00.0040.00417.42
8.0.300.0040.00418.77
8.0.290.0070.00716.58
8.0.280.0030.00318.45
8.0.270.0050.00317.15
8.0.260.0060.00017.18
8.0.250.0050.00216.99
8.0.240.0070.00016.95
8.0.230.0000.00717.00
8.0.220.0080.00016.93
8.0.210.0000.00716.92
8.0.200.0000.00716.86
8.0.190.0070.00016.95
8.0.180.0040.00416.85
8.0.170.0050.00216.88
8.0.160.0030.00416.94
8.0.150.0030.00316.81
8.0.140.0070.00016.76
8.0.130.0030.00313.33
8.0.120.0030.00516.73
8.0.110.0040.00416.91
8.0.100.0050.00216.76
8.0.90.0040.00416.92
8.0.80.0060.01516.92
8.0.70.0040.00416.74
8.0.60.0080.00016.93
8.0.50.0040.00416.95
8.0.30.0100.01017.12
8.0.20.0160.00517.40
8.0.10.0040.00416.89
8.0.00.0090.00816.72
7.4.330.0090.00015.03
7.4.320.0030.00316.41
7.4.300.0000.00616.59
7.4.290.0030.00316.43
7.4.280.0000.00816.61
7.4.270.0030.00316.55
7.4.260.0030.00316.51
7.4.250.0030.00316.48
7.4.240.0030.00316.55
7.4.230.0070.00016.67
7.4.220.0130.00716.43
7.4.210.0040.01016.58
7.4.200.0030.00316.34
7.4.160.0080.00816.32
7.4.150.0160.00917.40
7.4.140.0110.01017.86
7.4.130.0140.00616.46
7.4.120.0080.00916.54
7.4.110.0170.00016.43
7.4.100.0060.01616.46
7.4.90.0140.00616.48
7.4.80.0120.00919.39
7.4.70.0090.00916.49
7.4.60.0120.00316.51
7.4.50.0060.00316.48
7.4.40.0120.00616.56
7.4.30.0030.01416.37
7.4.00.0090.00614.82
7.3.330.0000.00613.23
7.3.320.0000.00513.13
7.3.310.0080.00016.31
7.3.300.0030.00316.17
7.3.290.0000.00716.34
7.3.280.0060.01316.31
7.3.270.0090.00917.40
7.3.260.0030.01316.35
7.3.250.0080.00916.54
7.3.240.0160.00716.28
7.3.230.0130.00816.39
7.3.210.0080.00816.20
7.3.200.0150.00316.29
7.3.190.0100.00716.32
7.3.180.0090.00616.41
7.3.170.0150.00016.30
7.3.160.0100.00716.63
7.3.80.0030.01314.79
7.3.70.0060.01214.60
7.3.60.0040.01414.63
7.3.50.0070.00714.74
7.3.40.0100.00714.69
7.3.30.0110.00814.71
7.3.20.0140.01714.82
7.3.10.0160.00615.00
7.3.00.0070.01314.40
7.2.330.0070.01116.70
7.2.320.0050.01816.68
7.2.310.0150.01016.40
7.2.300.0100.00716.38
7.2.290.0100.00716.84
7.2.210.0070.00715.16
7.2.200.0050.01415.00
7.2.190.0130.00714.86
7.2.180.0070.00715.11
7.2.170.0080.01114.89
7.2.160.0070.01314.84
7.2.150.0110.01114.79
7.2.140.0030.01715.03
7.2.130.0090.00614.89
7.2.120.0140.00614.94
7.2.110.0100.00715.12
7.2.100.0090.00814.74
7.2.90.0160.00314.96
7.2.80.0140.00514.91
7.2.70.0120.00914.82
7.2.60.0060.01315.76
7.2.50.0090.00614.55
7.2.40.0040.01314.89
7.2.30.0060.00914.86
7.2.20.0030.01314.83
7.2.10.0070.01314.85
7.2.00.0020.01017.15
7.1.310.0090.01013.95
7.1.300.0030.01313.95
7.1.290.0060.01013.91
7.1.280.0070.01113.77
7.1.270.0160.00013.69
7.1.260.0110.00313.87
7.1.250.0080.00514.05
7.1.240.0190.01013.89
7.1.230.0190.00313.80
7.1.220.0140.00714.05
7.1.210.0200.00013.61
7.1.200.0130.00414.72
7.1.190.0140.01213.75
7.1.180.0160.00813.66
7.1.170.0120.01213.79
7.1.160.0100.01013.68
7.1.150.0110.01113.94
7.1.140.0120.01513.99
7.1.130.0060.01313.98
7.1.120.0080.01214.05
7.1.110.0140.00713.63
7.1.100.0080.00916.02
7.1.90.0220.00714.00
7.1.80.0140.01113.85
7.1.70.0150.00515.48
7.1.60.0090.01216.70
7.1.50.0120.01015.40
7.1.40.0070.01413.90
7.1.30.0140.00513.81
7.1.20.0000.02113.81
7.1.10.0120.01315.66
7.1.00.0080.04218.98
7.0.330.0260.00613.50
7.0.320.0160.00513.25
7.0.310.0130.01013.45
7.0.300.0180.00313.35
7.0.290.0310.00913.31
7.0.280.0100.01013.63
7.0.270.0180.00313.18
7.0.260.0150.00313.24
7.0.250.0080.01113.60
7.0.240.0130.01013.44
7.0.230.0090.01313.44
7.0.220.0120.01313.54
7.0.210.0170.00513.58
7.0.200.0070.00615.04
7.0.190.0060.01613.44
7.0.180.0150.00313.58
7.0.170.0150.00713.40
7.0.160.0120.00813.59
7.0.150.0130.01015.23
7.0.140.0170.01015.31
7.0.130.0130.00615.21
7.0.120.0150.00615.48
7.0.110.0120.00815.18
7.0.100.0150.00415.16
7.0.90.0110.01115.30
7.0.80.0170.00415.27
7.0.70.0090.00914.89
7.0.60.0150.03817.41
7.0.50.0110.04116.62
7.0.40.0080.04917.84
7.0.30.0170.03817.71
7.0.20.0170.03417.83
7.0.10.0080.04917.79
7.0.00.0130.03417.81
5.6.400.0110.01114.03
5.6.390.0210.00214.14
5.6.380.0140.00713.76
5.6.370.0130.01013.92
5.6.360.0120.00914.24
5.6.350.0210.00613.92
5.6.340.0150.00314.03
5.6.330.0060.01213.82
5.6.320.0070.01214.33
5.6.310.0140.00814.31
5.6.300.0140.00913.71
5.6.290.0110.01114.20
5.6.280.0100.03817.74
5.6.270.0100.01714.18
5.6.260.0130.00913.77
5.6.250.0040.01614.02
5.6.240.0170.00313.98
5.6.230.0130.00613.83
5.6.220.0030.01513.97
5.6.210.0090.03517.34
5.6.200.0100.03016.00
5.6.190.0060.04917.24
5.6.180.0220.03517.19
5.6.170.0210.02517.40
5.6.160.0050.03017.21
5.6.150.0050.03216.10
5.6.140.0120.03716.14
5.6.130.0060.04816.22
5.6.120.0150.01817.54
5.6.110.0090.02917.55
5.6.100.0130.03717.48
5.6.90.0090.03117.50
5.6.80.0170.03217.12
5.6.70.2270.02217.28
5.6.60.0030.01713.95
5.6.50.0060.01214.13
5.6.40.0130.01014.01
5.6.30.0170.00413.89
5.6.20.0080.01013.96
5.6.10.0130.01013.99
5.6.00.0080.01313.72
5.5.380.0100.01014.13
5.5.370.0130.00514.35
5.5.360.0140.01114.16
5.5.350.0180.03817.27
5.5.340.0110.02715.82
5.5.330.0130.04717.14
5.5.320.0190.02817.13
5.5.310.0170.04717.23
5.5.300.0080.03515.80
5.5.290.0080.04615.93
5.5.280.0070.02517.38
5.5.270.0080.04317.28
5.5.260.0100.03817.51
5.5.250.0080.02417.31
5.5.240.0190.03716.92
5.5.230.0130.00713.77
5.5.220.0100.01113.90
5.5.210.0110.00813.71
5.5.200.0140.00613.68
5.5.190.0060.01413.88
5.5.180.0110.00914.05
5.5.170.0150.00513.90
5.5.160.0110.00814.05
5.5.150.0230.00313.94
5.5.140.0090.01413.90
5.5.130.0190.00613.99
5.5.120.0160.00813.99
5.5.110.0190.00013.89
5.5.100.0110.00813.71
5.5.90.0110.00713.67
5.5.80.0110.01114.00
5.5.70.0120.00613.96
5.5.60.0150.00314.01
5.5.50.0070.01514.06
5.5.40.0000.02413.59
5.5.30.0040.01413.86
5.5.20.0120.00613.68
5.5.10.0070.01714.00
5.5.00.0160.00313.60
5.4.450.0080.02315.09
5.4.440.0600.03015.17
5.4.430.0520.02315.27
5.4.420.0080.03515.25
5.4.410.0070.03415.18
5.4.400.0110.02614.92
5.4.390.0110.02814.89
5.4.380.0090.03014.88
5.4.370.0020.03915.02
5.4.360.0130.02615.05
5.4.350.0080.03015.03
5.4.340.0180.01814.74
5.4.330.0150.00010.82
5.4.320.0080.03314.80
5.4.310.0110.02715.00
5.4.300.0100.02615.11
5.4.290.0120.02814.91
5.4.280.0050.03314.96
5.4.270.0110.03014.90
5.4.260.0120.03014.99
5.4.250.0120.02614.95
5.4.240.0110.02814.93
5.4.230.0120.02514.89
5.4.220.0110.02914.82
5.4.210.0140.02515.01
5.4.200.0060.02913.84
5.4.190.0130.02514.92
5.4.180.0120.02614.92
5.4.170.0090.03214.83
5.4.160.0090.02714.83
5.4.150.0120.02714.84
5.4.140.0110.02613.60
5.4.130.0110.02213.84
5.4.120.0140.02213.73
5.4.110.0050.03013.60
5.4.100.0140.02313.68
5.4.90.0100.02713.51
5.4.80.0060.02913.46
5.4.70.0060.03113.59
5.4.60.0110.02713.41
5.4.50.0100.02513.62
5.4.40.0080.02813.63
5.4.30.0110.02713.55
5.4.20.0090.03013.73
5.4.10.0090.02713.38
5.4.00.0100.02613.18
5.3.290.0090.02912.55
5.3.280.0110.02512.35
5.3.270.0070.03212.46
5.3.260.0100.02812.39
5.3.250.0110.02512.45
5.3.240.0080.03712.34
5.3.230.0060.02912.50
5.3.220.0040.03212.44
5.3.210.0090.02712.32
5.3.200.0090.02712.36
5.3.190.0030.03512.44
5.3.180.0120.02512.51
5.3.170.0070.03612.42
5.3.160.0100.02712.56
5.3.150.0110.02512.50
5.3.140.0110.02812.30
5.3.130.0110.02812.55
5.3.120.0090.02812.43
5.3.110.0060.03412.43
5.3.100.0070.03212.15
5.3.90.0130.02412.28
5.3.80.0140.02412.21
5.3.70.0080.02812.23
5.3.60.0060.03212.12
5.3.50.0060.02911.96
5.3.40.0070.02912.09
5.3.30.0100.02712.05
5.3.20.0090.03211.90
5.3.10.0100.02511.81
5.3.00.0070.02811.88
5.2.170.0070.02210.11
5.2.160.0100.01910.03
5.2.150.0090.02010.07
5.2.140.0080.02410.09
5.2.130.0110.0189.95
5.2.120.0080.02310.10
5.2.110.0060.02510.13
5.2.100.0060.02310.19
5.2.90.0060.02510.14
5.2.80.0040.02510.02
5.2.70.0090.02510.00
5.2.60.0050.02510.02
5.2.50.0120.01810.08
5.2.40.0140.01510.06
5.2.30.0040.0259.84
5.2.20.0080.0209.93
5.2.10.0050.0249.80
5.2.00.0070.0219.75
5.1.60.0050.0259.18
5.1.50.0070.0189.08
5.1.40.0090.0219.20
5.1.30.0080.0189.44
5.1.20.0150.0199.28
5.1.10.0050.0279.27
5.1.00.0020.0319.11
5.0.50.0070.0177.92
5.0.40.0050.0157.82
5.0.30.0040.0237.82
5.0.20.0050.0157.86
5.0.10.0080.0137.71
5.0.00.0050.0227.78
4.4.90.0030.0136.54
4.4.80.0030.0126.53
4.4.70.0060.0106.56
4.4.60.0050.0106.59
4.4.50.0030.0156.54
4.4.40.0000.0236.53
4.4.30.0060.0116.57
4.4.20.0050.0136.58
4.4.10.0050.0126.61
4.4.00.0050.0166.54
4.3.110.0050.0106.49
4.3.100.0020.0146.51
4.3.90.0030.0126.55
4.3.80.0000.0226.53
4.3.70.0050.0146.47
4.3.60.0060.0136.54
4.3.50.0020.0196.48
4.3.40.0000.0226.45
4.3.30.0020.0135.86
4.3.20.0030.0125.90
4.3.10.0030.0125.88
4.3.00.0030.01011.44

preferences:
30.77 ms | 403 KiB | 5 Q