3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = function() { echo "closures are fun :)"; return function(){ return "This is cool!"; }; }; echo $f()();

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.0150.00016.63
8.3.50.0070.01416.25
8.3.40.0140.00018.70
8.3.30.0070.00718.71
8.3.20.0040.00420.20
8.3.10.0000.00721.95
8.3.00.0000.00723.51
8.2.180.0070.01118.29
8.2.170.0120.00622.96
8.2.160.0100.00320.39
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0050.00319.82
8.2.120.0000.00826.35
8.2.110.0050.00521.04
8.2.100.0040.00817.93
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0030.00618.04
8.2.50.0080.00018.07
8.2.40.0000.00820.55
8.2.30.0030.00519.31
8.2.20.0070.00017.59
8.2.10.0000.00717.94
8.2.00.0040.00417.93
8.1.280.0090.00625.92
8.1.270.0000.00923.96
8.1.260.0030.00528.09
8.1.250.0070.00028.09
8.1.240.0060.00322.46
8.1.230.0080.00319.01
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0000.00818.29
8.1.160.0000.00720.67
8.1.150.0000.00718.82
8.1.140.0000.00819.45
8.1.130.0000.00717.80
8.1.120.0000.00717.46
8.1.110.0000.00717.44
8.1.100.0070.00017.50
8.1.90.0040.00417.46
8.1.80.0080.00017.44
8.1.70.0070.00017.48
8.1.60.0060.00317.61
8.1.50.0030.00617.56
8.1.40.0080.00017.40
8.1.30.0090.00017.59
8.1.20.0000.00817.70
8.1.10.0040.00417.55
8.1.00.0070.00017.53
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0070.00018.43
8.0.270.0030.00717.16
8.0.260.0030.00317.18
8.0.250.0030.00316.81
8.0.240.0000.00716.91
8.0.230.0070.00016.79
8.0.220.0000.00716.74
8.0.210.0030.00316.73
8.0.200.0000.00716.93
8.0.190.0060.00316.89
8.0.180.0000.00716.84
8.0.170.0000.00816.89
8.0.160.0100.00016.95
8.0.150.0000.00816.82
8.0.140.0000.00816.86
8.0.130.0030.00313.38
8.0.120.0000.00816.88
8.0.110.0040.00416.91
8.0.100.0040.00416.94
8.0.90.0000.00816.74
8.0.80.0100.00516.86
8.0.70.0040.00416.84
8.0.60.0030.00316.77
8.0.50.0000.00716.68
8.0.30.0140.00217.04
8.0.20.0090.01017.40
8.0.10.0050.00217.03
8.0.00.0120.00616.77
7.4.330.0030.00316.71
7.4.320.0060.00016.46
7.4.300.0070.00016.59
7.4.290.0040.00416.66
7.4.280.0050.00316.58
7.4.270.0030.00316.59
7.4.260.0030.00316.55
7.4.250.0000.00816.57
7.4.240.0040.00316.50
7.4.230.0000.00716.40
7.4.220.0070.01016.49
7.4.210.0060.01116.53
7.4.200.0000.00716.33
7.4.160.0080.00816.28
7.4.150.0150.00917.40
7.4.140.0110.00817.86
7.4.130.0100.01016.48
7.4.120.0090.00916.46
7.4.110.0260.02716.57
7.4.100.0110.00616.54
7.4.90.0150.00316.53
7.4.80.0150.00619.39
7.4.70.0140.00516.35
7.4.60.0070.01316.37
7.4.50.0030.01216.38
7.4.40.0110.00616.57
7.4.30.0120.00616.38
7.4.00.0030.01314.80
7.3.330.0000.00513.09
7.3.320.0050.00013.10
7.3.310.0040.00416.29
7.3.300.0000.00616.12
7.3.290.0000.00616.12
7.3.280.0060.01016.16
7.3.270.0090.00917.40
7.3.260.0100.00716.29
7.3.250.0110.00616.39
7.3.240.0060.01216.41
7.3.230.0070.01016.39
7.3.210.0070.01016.32
7.3.200.0120.00619.39
7.3.190.0140.00816.17
7.3.180.0060.00916.20
7.3.170.0080.00816.27
7.3.160.0080.00816.59
7.3.10.0030.01216.73
7.3.00.0030.01016.43
7.2.330.0030.01516.42
7.2.320.0090.00916.67
7.2.310.0030.01516.70
7.2.300.0140.00316.68
7.2.290.0030.01316.41
7.2.130.0030.00716.86
7.2.120.0120.00316.90
7.2.110.0060.00616.88
7.2.100.0110.00416.88
7.2.90.0000.01616.80
7.2.80.0000.01416.62
7.2.70.0070.00716.69
7.2.60.0050.01016.68
7.2.50.0030.01016.73
7.2.40.0110.00416.87
7.2.30.0040.01116.82
7.2.20.0090.00616.80
7.2.10.0030.00716.65
7.2.00.0060.00618.05
7.1.250.0030.00615.70
7.1.200.0080.00015.41
7.1.100.0040.00818.09
7.1.70.0000.00717.04
7.1.60.0140.01119.30
7.1.50.0100.01016.87
7.1.00.0030.07722.40
7.0.200.0030.00716.70
7.0.60.0370.06321.81
7.0.50.0070.04017.88
7.0.40.0070.04020.14
7.0.30.0300.07720.32
7.0.20.0300.07720.10
7.0.10.0070.08720.25
7.0.00.0200.06720.23
5.6.280.0000.03720.90
5.6.210.0070.08020.70
5.6.200.0030.08718.18
5.6.190.0070.05320.58
5.6.180.0570.06720.50
5.6.170.0370.06320.51
5.6.160.0100.08320.50
5.6.150.0100.08018.23
5.6.140.0100.07018.14
5.6.130.0070.08318.19
5.6.120.0100.04021.01
5.6.110.0170.08020.90
5.6.100.0100.04021.12
5.6.90.0170.04320.89
5.6.80.0070.04320.52
5.5.350.0100.05020.36
5.5.340.0100.07718.09
5.5.330.0130.06320.37
5.5.320.0300.05320.20
5.5.310.0330.05020.30
5.5.300.0100.07718.03
5.5.290.0130.05317.93
5.5.280.0030.05020.84
5.5.270.0100.06720.76
5.5.260.0230.05320.77
5.5.250.0030.07320.47
5.5.240.0100.03320.24

preferences:
75.06 ms | 400 KiB | 5 Q