3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = (function($a) { return function($b) use ($a) { return $a + $b; }; })(42); echo $foo(10);

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.0030.00617.65
8.4.10.0120.00617.55
8.3.150.0070.01116.43
8.3.140.0090.00917.21
8.3.130.0040.00418.30
8.3.120.0040.00418.75
8.3.110.0080.00816.66
8.3.100.0080.00016.50
8.3.90.0030.01216.55
8.3.80.0030.00717.97
8.3.70.0110.00316.50
8.3.60.0130.00616.75
8.3.50.0100.00722.88
8.3.40.0120.00318.71
8.3.30.0150.00019.22
8.3.20.0000.00720.30
8.3.10.0040.00421.87
8.3.00.0080.00017.89
8.2.270.0060.01117.05
8.2.260.0090.00918.40
8.2.250.0080.00018.37
8.2.240.0150.00417.32
8.2.230.0060.00320.94
8.2.220.0000.00837.54
8.2.210.0000.00826.77
8.2.200.0060.00318.41
8.2.190.0110.00420.33
8.2.180.0100.00616.32
8.2.170.0120.00322.96
8.2.160.0070.00720.47
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0040.00419.36
8.2.110.0060.00322.27
8.2.100.0090.00319.64
8.2.90.0040.00417.75
8.2.80.0040.00418.77
8.2.70.0000.00817.63
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0000.00819.82
8.2.30.0040.00417.96
8.2.20.0040.00417.75
8.2.10.0050.00218.04
8.2.00.0040.00417.55
8.1.310.0140.00718.35
8.1.300.0130.00619.57
8.1.290.0000.00830.84
8.1.280.0070.01025.92
8.1.270.0090.00320.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00720.79
8.1.230.0040.00817.64
8.1.220.0040.00417.75
8.1.210.0030.00518.77
8.1.200.0030.00717.25
8.1.190.0070.00417.21
8.1.180.0060.00318.10
8.1.170.0020.00518.71
8.1.160.0040.00418.95
8.1.150.0000.00719.02
8.1.140.0040.00417.46
8.1.130.0040.00419.14
8.1.120.0040.00417.45
8.1.110.0040.00417.41
8.1.100.0000.00717.48
8.1.90.0000.00717.36
8.1.80.0080.00017.35
8.1.70.0040.00417.37
8.1.60.0060.00317.59
8.1.50.0040.00417.57
8.1.40.0100.00317.47
8.1.30.0040.00417.51
8.1.20.0040.00417.62
8.1.10.0000.00717.44
8.1.00.0050.00317.55
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0060.00318.43
8.0.270.0040.00417.17
8.0.260.0050.00216.82
8.0.250.0000.00717.00
8.0.240.0030.00616.82
8.0.230.0000.00716.95
8.0.220.0000.00716.91
8.0.210.0000.00716.91
8.0.200.0060.00016.84
8.0.190.0080.00017.00
8.0.180.0070.00016.95
8.0.170.0040.00416.83
8.0.160.0000.00717.03
8.0.150.0040.00416.86
8.0.140.0040.00416.76
8.0.130.0060.00013.35
8.0.120.0070.00016.74
8.0.110.0000.00716.90
8.0.100.0040.00416.85
8.0.90.0050.00216.88
8.0.80.0140.00016.89
8.0.70.0070.00016.77
8.0.60.0040.00416.76
8.0.50.0000.00817.01
8.0.30.0030.01317.30
8.0.20.0130.00717.40
8.0.10.0040.00416.88
8.0.00.0120.00916.77
7.4.330.0050.00015.09
7.4.320.0060.00016.46
7.4.300.0000.00716.42
7.4.290.0030.00316.63
7.4.280.0070.00016.59
7.4.270.0030.00316.50
7.4.260.0030.00616.58
7.4.250.0040.00416.46
7.4.240.0050.00216.54
7.4.230.0030.00316.67
7.4.220.0140.00616.49
7.4.210.0070.00716.55
7.4.200.0030.00316.39
7.4.160.0130.00316.43
7.4.150.0110.00717.40
7.4.140.0090.01217.86
7.4.130.0090.01016.52
7.4.120.0090.00816.57
7.4.110.0140.00716.54
7.4.100.0060.01316.55
7.4.90.0070.01016.56
7.4.80.0030.01319.39
7.4.70.0100.01016.62
7.4.60.0110.00516.54
7.4.50.0000.00616.42
7.4.40.0170.00316.61
7.4.30.0080.00816.69
7.4.00.0000.01514.86
7.3.330.0000.00713.17
7.3.320.0000.00513.31
7.3.310.0000.00716.32
7.3.300.0030.00316.32
7.3.290.0140.00016.32
7.3.280.0090.00716.24
7.3.270.0170.00017.40
7.3.260.0130.00616.20
7.3.250.0110.00516.44
7.3.240.0170.00016.54
7.3.230.0120.01216.50
7.3.210.0100.00616.45
7.3.200.0090.01219.39
7.3.190.0100.01016.53
7.3.180.0040.01216.70
7.3.170.0130.01016.67
7.3.160.0030.01816.51
7.2.330.0030.01316.62
7.2.320.0070.01516.77
7.2.310.0140.00416.44
7.2.300.0000.01716.71
7.2.290.0090.01416.57
7.2.60.0070.00717.04
7.1.200.0000.00715.39
7.1.70.0040.00417.12
7.1.60.0140.01119.34
7.1.50.0030.01716.79
7.1.00.0000.06322.58
7.0.200.0000.00816.83
7.0.140.0030.05722.09
7.0.60.0100.07719.80
7.0.50.0030.06317.87
7.0.40.0070.06720.30
7.0.30.0300.04720.24
7.0.20.0270.07720.15
7.0.10.0070.07020.02
7.0.00.0030.08720.10
5.6.280.0070.07021.16
5.6.210.0100.07320.55
5.6.200.0000.04318.29
5.6.190.0070.04020.33
5.6.180.0170.04320.48
5.6.170.0170.09020.47
5.6.160.0070.09020.50
5.6.150.0030.05018.27
5.6.140.0130.06318.18
5.6.130.0070.04018.24
5.6.120.0130.03021.13
5.6.110.0130.07721.00
5.6.100.0030.04320.97
5.6.90.0030.04320.96
5.6.80.0030.06020.40
5.5.350.0070.07720.34
5.5.340.0030.06317.98
5.5.330.0070.04020.29
5.5.320.1900.04320.39
5.5.310.0300.04020.34
5.5.300.0000.08717.95
5.5.290.0030.08318.06
5.5.280.0070.06720.81
5.5.270.0030.05020.86
5.5.260.0130.07320.89
5.5.250.0170.06720.66
5.5.240.0000.08020.36
5.4.450.0530.05319.48
5.4.440.1230.04719.52
5.4.430.1330.04019.58
5.4.420.0200.04719.36
5.4.410.0000.06319.02
5.4.400.0130.05018.51
5.4.390.0070.05718.61
5.4.380.0100.05718.79
5.4.370.0130.05018.71
5.4.360.0100.05718.72
5.4.350.0100.03013.82
5.4.340.0070.03313.80
5.4.320.0070.04314.30
5.4.310.0130.03714.25
5.4.300.0070.03714.29
5.4.290.0170.02714.30
5.4.280.0030.04014.18
5.4.270.0100.03314.10
5.4.260.0100.03714.15
5.4.250.0070.04014.10
5.4.240.0030.03714.12
5.4.230.0030.04014.28
5.4.220.0070.03314.10
5.4.210.0030.04014.24
5.4.200.0130.03714.14
5.4.190.0030.04014.22
5.4.180.0130.03014.22
5.4.170.0070.03314.23
5.4.160.0000.04014.39
5.4.150.0000.04014.18
5.4.140.0070.03713.82
5.4.130.0030.03713.82
5.4.120.0000.04013.77
5.4.110.0030.04013.94
5.4.100.0130.03013.85
5.4.90.0030.04013.81
5.4.80.0070.04314.02
5.4.70.0070.03313.80
5.4.60.0000.04014.02
5.4.50.0130.03313.78
5.4.40.0070.04314.00
5.4.30.0130.03013.79
5.4.20.0000.04013.84
5.4.10.0030.03713.71
5.4.00.0100.03313.25
5.3.290.0100.03714.73
5.3.280.0030.04014.59
5.3.270.0000.04714.64
5.3.260.0130.03714.77
5.3.250.0030.04014.64
5.3.240.0100.04014.59
5.3.230.0070.03714.78
5.3.220.0130.04014.54
5.3.210.0030.04314.57
5.3.200.0030.04314.54
5.3.190.0070.04014.63
5.3.180.0170.03314.48
5.3.170.0100.03714.75
5.3.160.0100.03314.52
5.3.150.0070.04014.53
5.3.140.0100.03714.55
5.3.130.0100.05014.68
5.3.120.0170.03314.52
5.3.110.0200.03014.53
5.3.100.0170.03713.96
5.3.90.0170.03713.94
5.3.80.0130.03713.98
5.3.70.0130.03714.10
5.3.60.0130.03314.11
5.3.50.0070.03713.89
5.3.40.0030.04013.94
5.3.30.0000.04314.06
5.3.20.0130.03013.80
5.3.10.0070.03313.76
5.3.00.0170.02713.57
5.2.170.0070.03011.01
5.2.160.0070.03311.09
5.2.150.0100.02711.19
5.2.140.0070.02711.11
5.2.130.0000.04311.19
5.2.120.0100.02711.01
5.2.110.0000.03311.11
5.2.100.0100.02311.11
5.2.90.0000.03711.02
5.2.80.0100.03311.18
5.2.70.0070.03011.10
5.2.60.0070.03310.97
5.2.50.0070.02711.09
5.2.40.0130.02311.08
5.2.30.0070.03711.02
5.2.20.0070.02711.04
5.2.10.0000.03310.93
5.2.00.0070.03310.66
5.1.60.0030.0279.95
5.1.50.0100.0209.98
5.1.40.0000.0279.95
5.1.30.0000.04010.32
5.1.20.0030.02710.46
5.1.10.0030.03310.06
5.1.00.0070.02710.04
5.0.50.0070.0178.52
5.0.40.0000.0278.34
5.0.30.0030.0408.21
5.0.20.0030.0208.33
5.0.10.0030.0208.14
5.0.00.0070.0278.13
4.4.90.0030.0235.88
4.4.80.0000.0205.80
4.4.70.0070.0175.80
4.4.60.0030.0235.79
4.4.50.0000.0205.82
4.4.40.0000.0275.79
4.4.30.0000.0175.85
4.4.20.0030.0175.90
4.4.10.0030.0175.89
4.4.00.0000.0335.84
4.3.110.0030.0205.73
4.3.100.0070.0135.76
4.3.90.0000.0175.77
4.3.80.0030.0235.80
4.3.70.0030.0175.76
4.3.60.0030.0175.70
4.3.50.0030.0235.82
4.3.40.0000.0305.80
4.3.30.0030.0134.52
4.3.20.0000.0234.50
4.3.10.0030.0174.52
4.3.00.0000.01715.73

preferences:
29.64 ms | 403 KiB | 5 Q