3v4l.org

run code in 300+ PHP versions simultaneously
<?php $outer = function () { echo "Outer\n"; $times = 0; $inner = function () use ( $times, &$inner ) { echo "Inner : ${times}\n"; $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.40.0190.00619.55
8.3.30.0120.00921.17
8.3.20.0080.00421.18
8.3.10.0130.00020.99
8.3.00.0110.00022.57
8.2.170.0240.00322.96
8.2.160.0200.00722.08
8.2.150.0100.00024.18
8.2.140.0070.00424.66
8.2.130.0030.00726.16
8.2.120.0080.00320.93
8.2.110.0100.00321.38
8.2.100.0240.00419.71
8.2.90.0090.00020.05
8.2.80.0070.00318.43
8.2.70.0070.00318.38
8.2.60.0030.00618.79
8.2.50.0040.00718.38
8.2.40.0070.00419.03
8.2.30.0060.00320.18
8.2.20.0060.00318.38
8.2.10.0000.00918.69
8.2.00.0050.00518.46
8.1.270.0070.00323.99
8.1.260.0000.01126.35
8.1.250.0100.00028.09
8.1.240.0120.00322.81
8.1.230.0070.00721.51
8.1.220.0030.00618.77
8.1.210.0030.00619.58
8.1.200.0070.00417.75
8.1.190.0090.00419.30
8.1.180.0060.00318.10
8.1.170.0060.00319.27
8.1.160.0060.00319.59
8.1.150.0030.00619.37
8.1.140.0060.00318.08
8.1.130.0090.00018.55
8.1.120.0030.00618.21
8.1.110.0060.00318.19
8.1.100.0090.00018.30
8.1.90.0060.00318.20
8.1.80.0090.00018.38
8.1.70.0080.00018.14
8.1.60.0060.00318.35
8.1.50.0090.00018.26
8.1.40.0060.00318.23
8.1.30.0040.00418.28
8.1.20.0070.00419.01
8.1.10.0030.00618.34
8.1.00.0060.00318.09
8.0.300.0060.00620.45
8.0.290.0090.00017.66
8.0.280.0080.00019.04
8.0.270.0030.00717.85
8.0.260.0070.00317.27
8.0.250.0090.00017.50
8.0.240.0040.00818.13
8.0.230.0030.00917.39
8.0.220.0060.00317.39
8.0.210.0000.00917.59
8.0.200.0000.00817.54
8.0.190.0090.00017.48
8.0.180.0050.00517.52
8.0.170.0040.00417.42
8.0.160.0030.00617.43
8.0.150.0030.00517.39
8.0.140.0040.00417.34
8.0.130.0000.00714.03
8.0.120.0090.00017.48
8.0.110.0030.00617.52
8.0.100.0040.00417.45
8.0.90.0040.00417.46
8.0.80.0230.00017.41
8.0.70.0030.00617.28
8.0.60.0080.00017.41
8.0.50.0040.00417.40
8.0.30.0260.00717.57
8.0.20.0180.01417.54
8.0.10.0060.00317.62
8.0.00.0260.01717.80
7.4.330.0030.01016.88
7.4.320.0080.00016.91
7.4.300.0040.00417.06
7.4.290.0030.00517.03
7.4.280.0040.00818.34
7.4.270.0070.00717.96
7.4.260.0050.00213.91
7.4.250.0030.00617.00
7.4.240.0030.00717.08
7.4.230.0090.00017.13
7.4.220.0250.02817.78
7.4.210.0150.01017.08
7.4.200.0030.00616.95
7.4.190.0050.00316.99
7.4.160.0540.02418.18
7.4.150.0230.01117.40
7.4.140.0290.01818.13
7.4.130.0440.02118.37
7.4.120.0410.02118.25
7.4.110.0360.01818.32
7.4.100.0270.01717.10
7.4.90.0210.01117.34
7.4.80.0290.02619.39
7.4.70.0100.04118.35
7.4.60.0200.02017.17
7.4.50.0060.00616.93
7.4.40.0100.01322.77
7.4.30.0210.03118.35
7.3.330.0000.00813.92
7.3.320.0040.00414.28
7.3.310.0090.00017.14
7.3.300.0060.00316.88
7.3.290.0100.01016.83
7.3.280.0130.01717.00
7.3.270.0170.01417.40
7.3.260.0340.02518.24
7.3.250.0380.02418.11
7.3.240.0340.01017.30
7.3.230.0410.02418.40
7.3.210.0540.00918.36
7.3.200.0030.02919.39
7.3.190.0280.00317.15
7.3.180.0160.01916.88
7.3.170.0170.01317.03
7.3.160.0240.03118.49
7.2.330.0230.02217.81
7.2.320.0310.02218.64
7.2.310.0100.01617.18
7.2.300.0060.02017.38
7.2.290.0160.04318.59
7.2.100.0750.00715.52
7.2.90.0920.00616.34
7.2.80.2030.01316.08
7.2.70.1380.01315.91
7.2.60.1280.01816.64
7.2.50.0690.01216.48
7.2.40.0890.00315.84
7.2.30.1740.00516.56
7.2.20.0960.01316.60
7.2.10.0700.00715.47
7.2.00.1270.00615.74
7.1.220.0550.00614.26
7.1.210.0650.00914.63
7.1.200.0690.00314.61
7.1.190.0810.00714.93
7.1.180.1550.00315.29
7.1.170.0730.01014.75
7.1.160.0660.01314.70
7.1.150.1280.01015.25
7.1.140.0870.01515.32
7.1.130.0600.01514.99
7.1.120.0830.01015.18
7.1.110.1360.01215.48
7.1.100.1460.01115.42
7.1.90.1110.01615.20
7.1.80.1060.01115.51
7.1.70.1100.00915.36
7.1.60.1530.01633.51
7.1.50.1120.00932.81
7.1.40.1030.01332.12
7.1.30.0980.01033.02
7.1.20.1070.01032.79
7.1.10.0770.00414.69
7.1.00.0770.01815.01
7.0.310.0470.00914.21
7.0.300.1020.00615.12
7.0.290.1230.01415.29
7.0.280.1510.00715.12
7.0.270.0760.00014.89
7.0.260.1210.01314.98
7.0.250.0950.02015.16
7.0.240.1310.01015.29
7.0.230.0880.00614.98
7.0.220.0510.00714.75
7.0.210.1200.01714.82
7.0.200.0280.01214.44
7.0.190.1150.01015.44
7.0.180.0710.01715.87
7.0.170.0890.01515.53
7.0.160.0970.02015.77
7.0.150.0390.01415.14
7.0.140.1180.01315.33
7.0.130.1490.01015.09
7.0.120.1260.00715.27
7.0.110.1200.01015.29
7.0.100.0760.00914.38
7.0.90.0670.01014.47
7.0.80.0230.01315.21
7.0.70.0840.00314.96
7.0.60.0930.00914.64
7.0.50.0890.01014.71
7.0.40.0910.00714.84
7.0.30.0840.01914.72
7.0.20.0920.00414.88
7.0.10.0220.00914.53
5.6.380.0270.01116.80
5.6.370.0410.00918.86
5.6.360.0330.00717.63
5.6.350.0310.01518.79
5.6.340.0260.01417.39
5.6.330.0310.01417.32
5.6.320.0390.00817.84
5.6.310.0260.00416.26
5.6.300.0190.01515.92
5.6.290.0210.01216.11
5.6.280.0240.01115.96
5.6.270.0180.01315.98
5.6.260.0220.01215.73
5.6.250.0220.01918.15
5.6.240.0330.01818.07
5.6.230.0200.00815.83
5.6.220.0190.01916.21
5.6.210.0180.02518.46
5.6.200.0210.00816.18
5.6.190.0160.01616.00
5.6.180.0410.01418.55
5.6.170.0110.01516.04
5.5.380.0280.00612.64
5.5.370.0270.00312.82
5.5.360.0220.01113.89
5.5.350.0200.01012.60
5.5.340.0280.01013.98
5.5.330.0140.01112.74
5.5.320.0250.01615.58
5.5.310.0300.00813.70

preferences:
46.45 ms | 400 KiB | 5 Q