3v4l.org

run code in 300+ PHP versions simultaneously
<?php $outer = function () { echo "Outer<br>"; $times = 0; function inner () { echo "Inner : ${times}<br>"; $times++; if ( $times <= 2 ){ inner(); } }; return inner; }; $inner = $outer(); $inner(); ?>

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.0140.00318.55
8.3.50.0050.01621.27
8.3.40.0110.00418.76
8.3.30.0060.00920.15
8.3.20.0080.00018.74
8.3.10.0050.00321.05
8.3.00.0040.00422.33
8.2.180.0120.00616.63
8.2.170.0150.00722.96
8.2.160.0070.00720.52
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0070.00020.89
8.2.110.0060.00319.27
8.2.100.0070.00317.72
8.2.90.0040.00419.08
8.2.80.0060.00318.03
8.2.70.0050.00317.62
8.2.60.0030.00517.91
8.2.50.0040.00418.07
8.2.40.0070.00018.34
8.2.30.0000.00717.97
8.2.20.0020.00517.59
8.2.10.0040.00417.68
8.2.00.0040.00417.73
8.1.280.0100.01325.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.79
8.1.230.0120.00020.84
8.1.220.0000.00918.77
8.1.210.0090.00018.96
8.1.200.0060.00617.35
8.1.190.0040.00417.51
8.1.180.0030.00618.10
8.1.170.0040.00418.75
8.1.160.0040.00418.91
8.1.150.0050.00218.69
8.1.140.0000.00817.41
8.1.130.0030.00317.75
8.1.120.0040.00417.52
8.1.110.0070.00017.43
8.1.100.0050.00317.45
8.1.90.0000.00717.41
8.1.80.0040.00417.45
8.1.70.0000.00717.43
8.1.60.0030.00617.62
8.1.50.0060.00317.43
8.1.40.0000.00817.54
8.1.30.0040.00417.54
8.1.20.0030.00717.69
8.1.10.0000.00717.47
8.1.00.0000.00917.50
8.0.300.0020.00520.04
8.0.290.0040.00416.75
8.0.280.0030.00318.35
8.0.270.0030.00317.25
8.0.260.0030.00516.96
8.0.250.0000.00716.92
8.0.240.0000.00816.90
8.0.230.0000.00716.99
8.0.220.0020.00616.81
8.0.210.0070.00016.98
8.0.200.0030.00316.99
8.0.190.0040.00417.01
8.0.180.0000.00816.94
8.0.170.0040.00416.88
8.0.160.0040.00416.89
8.0.150.0000.00716.95
8.0.140.0040.00416.92
8.0.130.0000.00613.33
8.0.120.0000.00716.86
8.0.110.0070.00016.96
8.0.100.0000.00816.93
8.0.90.0040.00416.96
8.0.80.0090.00916.89
8.0.70.0050.00316.82
8.0.60.0000.01016.86
8.0.50.0040.00416.87
8.0.30.0080.01117.11
8.0.20.0240.01017.40
8.0.10.0000.00716.92
8.0.00.0090.00916.79
7.4.330.0060.00016.84
7.4.320.0000.00716.39
7.4.300.0030.00316.52
7.4.290.0030.00616.59
7.4.280.0090.00016.55
7.4.270.0050.00216.43
7.4.260.0000.00813.75
7.4.250.0050.00316.42
7.4.240.0070.00316.45
7.4.230.0030.00316.33
7.4.220.0130.02016.43
7.4.210.0100.01116.47
7.4.200.0030.00616.38
7.4.190.0050.00316.74
7.4.160.0110.01116.52
7.4.150.0120.01617.40
7.4.140.0240.01617.86
7.4.130.0060.01816.58
7.4.120.0480.00916.62
7.4.110.0510.03216.57
7.4.100.0230.00516.61
7.4.90.0310.01716.54
7.4.80.1170.03119.39
7.4.70.0500.03116.65
7.4.60.0150.00916.68
7.4.50.0040.00416.52
7.4.40.0060.01322.77
7.4.30.0160.00916.29
7.4.00.0130.00314.56
7.3.330.0030.00513.78
7.3.320.0050.00213.80
7.3.310.0040.00416.43
7.3.300.0060.00316.27
7.3.290.0130.00616.54
7.3.280.0100.00916.45
7.3.270.0190.01017.40
7.3.260.0280.01618.24
7.3.250.0470.01016.49
7.3.240.0150.01816.44
7.3.230.0170.01016.63
7.3.210.0320.02216.43
7.3.200.0380.02719.39
7.3.190.0180.03316.31
7.3.180.0220.01016.37
7.3.170.0280.01316.44
7.3.160.0090.01216.46
7.3.120.0030.01615.09
7.2.330.0150.00916.78
7.2.320.0180.00416.68
7.2.310.0300.01516.76
7.2.300.0430.01416.84
7.2.290.0670.02816.89
7.2.60.0070.01016.97
7.2.00.0000.01519.45
7.1.200.0100.00715.80
7.1.100.0070.00518.07
7.1.70.0060.01016.94
7.1.60.0040.02419.17
7.1.50.0160.00917.02
7.0.200.0050.00516.66
5.4.280.0030.06319.15
5.4.270.0030.05719.18
5.4.260.2130.04719.24
5.4.250.2200.04019.01
5.4.240.2270.03319.16
5.4.230.0170.04719.15
5.4.220.2070.04719.16
5.4.210.0070.05319.15
5.4.200.2100.04019.27
5.4.190.0130.05019.13
5.4.180.1900.03719.22
5.4.170.0300.04319.25
5.4.160.0170.07019.07
5.4.150.2130.04319.17
5.4.140.2130.04016.62
5.4.130.0170.04016.68
5.4.120.2070.04316.46
5.4.110.0100.05016.73
5.4.100.0100.05016.70
5.4.90.2100.03716.75
5.4.80.2100.04016.55
5.4.70.2100.04016.62
5.4.60.0170.04316.55
5.4.50.2200.04316.73
5.4.40.0230.04016.49
5.4.30.0070.05016.72
5.4.20.2230.03716.73
5.4.10.0100.04716.38
5.4.00.0100.05016.16
5.3.280.2300.03714.74
5.3.270.1900.04014.89
5.3.260.2230.04714.73
5.3.250.2000.03014.60
5.3.240.2300.03714.71
5.3.230.1970.03714.74
5.3.220.1930.03314.66
5.3.210.2030.04014.66
5.3.200.2230.03714.60
5.3.190.0200.07314.67
5.3.180.1970.03014.57
5.3.170.1870.04314.74
5.3.160.2030.02314.61
5.3.150.1930.03714.70
5.3.140.0130.04714.67
5.3.130.0100.06014.35
5.3.120.2230.04714.54
5.3.110.2300.03714.57
5.3.100.0070.05014.09
5.3.90.0070.05014.10
5.3.80.2070.04014.15
5.3.70.0070.05313.95
5.3.60.0070.05013.87
5.3.50.0130.05313.96
5.3.40.0100.04713.99
5.3.30.0070.05313.94
5.3.20.2130.04013.57
5.3.10.0070.04713.51
5.3.00.0030.05313.80

preferences:
41.44 ms | 401 KiB | 5 Q