3v4l.org

run code in 300+ PHP versions simultaneously
<?php $functions = [function($a){return $a+1;}]; for ($i=1;$i<100000;$i++) { $f = $functions[$i-1]; $functions[$i] = function ($a) use ($f) { return $f($a); }; } $functions[$i](1);

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.0720.03377.13
8.3.50.0550.03377.06
8.3.40.0390.01347.66
8.3.30.0400.01347.67
8.3.20.0160.01349.21
8.3.10.0070.02051.09
8.3.00.0190.00347.73
8.2.180.0840.02477.22
8.2.170.0380.02247.88
8.2.160.0290.02249.53
8.2.150.0180.01147.78
8.2.140.0190.00649.58
8.2.130.0030.01649.13
8.2.120.0160.00347.29
8.2.110.0230.01349.35
8.2.100.0310.01446.93
8.2.90.0190.01348.19
8.2.80.0160.01346.50
8.2.70.0170.01746.50
8.2.60.0170.01446.67
8.2.50.0180.01846.63
8.2.40.0210.01048.50
8.2.30.0160.01049.36
8.2.20.0100.02046.60
8.2.10.0170.01046.99
8.2.00.0140.01446.87
8.1.270.0210.00745.83
8.1.260.0350.01047.67
8.1.250.0130.01644.43
8.1.240.0110.01848.04
8.1.230.0220.01643.14
8.1.220.0180.00743.16
8.1.210.0130.01642.98
8.1.200.0100.02143.00
8.1.190.0160.01342.85
8.1.180.0170.01043.03
8.1.170.0100.01744.09
8.1.160.0060.01846.19
8.1.150.0140.01044.43
8.1.140.0170.01445.02
8.1.130.0140.01043.06
8.1.120.0140.01442.90
8.1.110.0140.01042.91
8.1.100.0030.02342.84
8.1.90.0200.01442.86
8.1.80.0180.01142.85
8.1.70.0230.00742.91
8.1.60.0160.01243.09
8.1.50.0040.02543.02
8.1.40.0190.01542.89
8.1.30.0030.02442.96
8.1.20.0070.02143.07
8.1.10.0160.03977.24
8.1.00.0320.02977.20
8.0.300.0320.01976.60
8.0.290.0210.03176.46
8.0.280.0240.02778.16
8.0.270.0390.02376.97
8.0.260.0290.02276.88
8.0.250.0170.03176.54
8.0.240.0170.03476.56
8.0.230.0440.02776.54
8.0.220.0330.01776.38
8.0.210.0240.02776.46
8.0.200.0160.03376.55
8.0.190.0230.03276.66
8.0.180.0200.03776.59
8.0.170.0230.03676.57
8.0.160.0240.03176.70
8.0.150.0310.02776.54
8.0.140.0330.03376.44
8.0.130.0200.04483.88
8.0.120.0240.03476.61
8.0.110.0320.02376.39
8.0.100.0260.03676.56
8.0.90.0410.01376.35
8.0.80.0470.07076.59
8.0.70.0230.03976.36
8.0.60.0300.02776.34
8.0.50.0210.03176.45
8.0.30.0590.07176.80
8.0.20.0650.07476.69
8.0.10.0100.04176.64
8.0.00.0670.07376.51
7.4.330.0040.02875.22
7.4.320.0200.03075.99
7.4.300.0320.02576.19
7.4.290.0230.02976.07
7.4.280.0430.02675.94
7.4.270.0160.03876.16
7.4.260.0300.03676.25
7.4.250.0200.03776.06
7.4.240.0260.02976.10
7.4.230.0170.03376.29
7.4.220.0560.10476.28
7.4.210.0560.07976.22
7.4.200.0180.03576.01
7.4.160.0570.07076.11
7.4.150.0720.07976.35
7.4.140.0870.08676.13
7.4.130.0640.08276.20
7.4.120.0630.08776.34
7.4.110.0640.07176.39
7.4.100.0690.06876.04
7.4.90.0610.08376.34
7.4.80.0690.06676.11
7.4.70.0510.09276.24
7.4.60.0670.07076.45
7.4.50.0240.06176.09
7.4.40.0820.06976.37
7.4.30.0760.06076.33
7.4.00.0460.05974.56
7.3.330.0350.03983.73
7.3.320.0230.04683.84
7.3.310.0290.02976.00
7.3.300.0240.02876.26
7.3.290.0560.07775.90
7.3.280.0630.07875.90
7.3.270.1020.07676.23
7.3.260.0730.06376.11
7.3.250.0710.08175.99
7.3.240.0680.08376.03
7.3.230.0540.08176.39
7.3.210.0600.07676.50
7.3.200.0640.07476.00
7.3.190.0680.07275.97
7.3.180.0740.11176.19
7.3.170.0760.07976.09
7.3.160.0580.07776.05
7.3.120.0490.06274.64
7.3.110.0530.05674.41
7.3.100.0390.05274.81
7.3.90.0360.08274.75
7.3.80.0300.08374.67
7.3.70.0360.06574.30
7.3.60.0260.06574.27
7.3.50.0440.04074.68
7.3.40.0420.06974.52
7.3.30.0370.05174.29
7.3.20.0530.06676.66
7.3.10.1180.04676.71
7.3.00.0710.03676.81
7.2.330.0640.14276.41
7.2.320.0850.16676.39
7.2.310.0890.13876.09
7.2.300.0650.12476.58
7.2.290.0750.12876.48
7.2.250.0460.12574.57
7.2.240.0490.13475.00
7.2.230.0340.10174.70
7.2.220.0400.12374.72
7.2.210.0260.12274.84
7.2.200.0260.12574.79
7.2.190.0400.09774.88
7.2.180.0500.11874.73
7.2.170.0330.11574.84
7.2.60.1310.06777.12
7.2.00.0660.08379.61
7.1.330.0460.09284.03
7.1.320.0810.10484.12
7.1.310.0390.11784.20
7.1.300.0460.08683.84
7.1.290.0300.11383.95
7.1.280.1120.10682.39
7.1.270.1830.09082.36
7.1.260.0360.08683.97
7.1.200.1090.06084.15
7.1.100.1970.02240.33
7.1.70.1110.06785.31
7.1.60.0170.10585.62
7.1.50.0620.06885.36
7.1.00.0030.15090.67
7.0.200.5480.07579.85
7.0.60.0330.12085.36
7.0.50.0230.10083.27
7.0.40.0070.14728.23
7.0.30.0400.13028.25
7.0.20.0500.15328.08
7.0.10.0100.10028.07
7.0.00.0170.11728.07
5.6.280.0230.21384.27
5.6.210.0400.24782.41
5.6.200.0400.26080.07
5.6.190.0230.28082.27
5.6.180.0500.19382.06
5.6.170.0530.20382.31
5.6.160.0270.19382.19
5.6.150.0200.24080.02
5.6.140.0200.28380.03
5.6.130.0200.22080.00
5.6.120.0330.25082.88
5.6.110.0130.26382.76
5.6.100.0230.18782.99
5.6.90.0470.25083.01
5.6.80.0430.24782.28
5.5.350.4900.22082.29
5.5.340.0230.25779.84
5.5.330.0270.28782.04
5.5.320.0570.20082.11
5.5.310.0430.22081.91
5.5.300.0300.26079.81
5.5.290.0100.23079.90
5.5.280.0330.27382.64
5.5.270.0230.19382.69
5.5.260.0400.24382.76
5.5.250.0230.22382.53
5.5.240.0300.24083.51

preferences:
54.42 ms | 400 KiB | 5 Q