3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1,2,3,4,5,6,7,8,9); function walk($a, $index = 0){ if (0 == $index +1) { echo($a[$index]); } else { echo($a[$index]); walk($a, $index +1); } } walk($array);

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.00816.75
8.3.50.0220.01516.55
8.3.40.0130.01318.97
8.3.30.0130.00918.92
8.3.20.0070.00319.05
8.3.10.0030.00718.88
8.3.00.0060.00619.27
8.2.180.0080.01217.13
8.2.170.0110.01122.96
8.2.160.0180.00419.21
8.2.150.0260.00024.18
8.2.140.0030.00624.66
8.2.130.0250.00726.16
8.2.120.0000.00920.79
8.2.110.0200.00322.25
8.2.100.0120.00819.36
8.2.90.0070.00318.13
8.2.80.0090.00019.11
8.2.70.0040.00418.00
8.2.60.0100.00518.00
8.2.50.0110.00018.30
8.2.40.0060.00319.60
8.2.30.0080.00618.19
8.2.20.0030.00617.98
8.2.10.0090.00017.95
8.2.00.0070.00718.07
8.1.280.0150.00325.92
8.1.270.0290.01523.99
8.1.260.0270.01226.35
8.1.250.0050.00328.09
8.1.240.0240.00822.70
8.1.230.0150.00419.25
8.1.220.0040.00417.91
8.1.210.0040.00418.77
8.1.200.0090.00017.60
8.1.190.0030.00617.60
8.1.180.0000.00818.10
8.1.170.0000.00917.85
8.1.160.0000.00819.28
8.1.150.0060.00318.93
8.1.140.0100.00517.83
8.1.130.0090.00019.36
8.1.120.0080.00017.70
8.1.110.0000.00917.83
8.1.100.0050.01017.68
8.1.90.0100.00617.88
8.1.80.0030.00617.71
8.1.70.0000.01017.82
8.1.60.0060.00317.83
8.1.50.0050.01017.81
8.1.40.0090.00517.96
8.1.30.0000.01317.94
8.1.20.0030.00617.70
8.1.10.0000.00717.71
8.1.00.0060.00617.98
8.0.300.0030.00619.98
8.0.290.0080.00416.75
8.0.280.0060.01218.84
8.0.270.0000.00817.30
8.0.260.0080.00016.98
8.0.250.0030.00617.18
8.0.240.0000.00817.29
8.0.230.0030.00617.23
8.0.220.0000.00917.07
8.0.210.0000.00917.05
8.0.200.0040.00417.18
8.0.190.0040.00417.13
8.0.180.0130.00017.19
8.0.170.0080.00717.07
8.0.160.0040.00417.18
8.0.150.0030.00617.21
8.0.140.0050.00516.88
8.0.130.0030.00313.57
8.0.120.0000.01217.15
8.0.110.0090.00917.02
8.0.100.0030.00617.19
8.0.90.0030.00617.08
8.0.80.0070.01317.18
8.0.70.0090.00017.03
8.0.60.0100.00016.99
8.0.50.0040.00817.19
8.0.30.0400.02017.44
8.0.20.0340.01917.42
8.0.10.0000.01017.38
8.0.00.0180.01016.99
7.4.330.0070.00013.18
7.4.320.0080.00316.62
7.4.300.0080.00016.72
7.4.290.0060.00316.55
7.4.280.0000.01316.68
7.4.270.0050.00516.87
7.4.260.0660.116121.73
7.4.250.0040.00816.80
7.4.240.0030.00516.80
7.4.230.0090.00516.61
7.4.220.0140.01416.61
7.4.210.0320.01916.89
7.4.200.0060.00316.43
7.4.190.0070.00316.95
7.4.160.0180.01116.79
7.4.150.0310.02516.70
7.4.140.0140.01816.59
7.4.130.0100.01716.80
7.4.120.0230.00916.80
7.4.110.0890.03816.74
7.4.100.0640.02616.74
7.4.90.0540.01816.94
7.4.80.0170.00619.39
7.4.70.0270.01116.86
7.4.60.0310.01316.91
7.4.50.0000.00616.64
7.4.40.0070.01016.60
7.4.30.0380.01716.59
7.3.330.0600.110121.40
7.3.320.0700.101121.83
7.3.310.0050.00316.48
7.3.300.0030.00516.68
7.3.290.0140.00916.52
7.3.280.0150.01216.58
7.3.270.0490.01016.79
7.3.260.0370.01416.77
7.3.250.0340.01316.78
7.3.240.0090.01916.73
7.3.230.0290.00916.88
7.3.210.0190.01216.73
7.3.200.0030.01716.41
7.3.190.0090.01216.52
7.3.180.0130.01016.63
7.3.170.0280.01516.82
7.3.160.0340.00716.85
7.2.330.0470.01417.12
7.2.320.0090.01617.07
7.2.310.0080.02016.83
7.2.300.0250.01317.01
7.2.290.0100.01016.86
7.2.100.1030.00714.91
7.2.90.0610.00714.96
7.2.80.1050.01314.88
7.2.70.0650.01415.24
7.2.60.1090.02215.36
7.2.50.0840.00915.11
7.2.40.1000.00915.11
7.2.30.0170.00715.23
7.2.20.0860.01015.40
7.2.10.0940.00715.47
7.2.00.1090.00615.32
7.1.220.1030.01014.27
7.1.210.0920.01214.03
7.1.200.0840.00914.32
7.1.190.1090.00714.07
7.1.180.0780.01014.03
7.1.170.0470.01314.10
7.1.160.0810.00514.05
7.1.150.0060.01014.08
7.1.140.0550.00314.20
7.1.130.0980.01014.19
7.1.120.0180.00013.92
7.1.110.0120.00814.33
7.1.100.0860.00614.18
7.1.90.0880.00413.96
7.1.80.0470.00414.10
7.0.310.1630.01013.63
7.0.300.0950.00413.43
7.0.290.0960.00613.79
7.0.280.1060.00013.79
7.0.270.0950.00013.44
7.0.260.0970.00014.00
7.0.250.0620.00013.88
7.0.240.0160.00414.07
7.0.230.0700.00313.79
7.0.220.0230.00613.53
5.6.380.0100.01715.34
5.6.370.0070.01115.05
5.6.360.0160.00515.29
5.6.350.0100.01715.43
5.6.340.0090.00414.79
5.6.330.0150.00514.73
5.6.320.0170.00415.17

preferences:
38.42 ms | 401 KiB | 5 Q