3v4l.org

run code in 300+ PHP versions simultaneously
<?php function check_ints(&$in) { if (is_array($in)) { foreach ($in as $val) { recurse_array($val); } } } $array = range(1, 10); $array[10] = $array; $array[10][10] = $array; $array[10][10][10] = $array; $array[10][10][10][10] = $array; $array[10][10][10][10][10] = $array; echo 'memory before: ', memory_get_peak_usage(true); recurse_array($array); echo 'memory after: ', memory_get_peak_usage(true);

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.0040.01116.50
8.3.50.0100.00721.97
8.3.40.0150.00018.84
8.3.30.0090.00618.92
8.3.20.0000.00820.34
8.3.10.0080.00021.92
8.3.00.0080.00017.93
8.2.180.0070.01516.88
8.2.170.0070.01422.96
8.2.160.0150.00018.93
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0050.00320.86
8.2.110.0000.01022.07
8.2.100.0060.00617.84
8.2.90.0040.00419.25
8.2.80.0060.00317.97
8.2.70.0030.00517.60
8.2.60.0090.00018.05
8.2.50.0060.00318.07
8.2.40.0080.00020.00
8.2.30.0070.00018.30
8.2.20.0040.00417.80
8.2.10.0000.00818.06
8.2.00.0000.00817.75
8.1.280.0110.00325.92
8.1.270.0040.00423.77
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0080.00023.80
8.1.230.0050.00519.21
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0030.00617.23
8.1.180.0000.00718.10
8.1.170.0060.00318.70
8.1.160.0020.00521.87
8.1.150.0050.00218.51
8.1.140.0070.00017.30
8.1.130.0000.00717.78
8.1.120.0070.00017.32
8.1.110.0000.00817.40
8.1.100.0050.00317.28
8.1.90.0050.00217.41
8.1.80.0000.00717.43
8.1.70.0030.00317.37
8.1.60.0050.00817.48
8.1.50.0040.00417.40
8.1.40.0040.00417.50
8.1.30.0030.00617.53
8.1.20.0040.00417.61
8.1.10.0050.00317.58
8.1.00.0050.00317.37
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0030.00318.36
8.0.270.0070.00016.88
8.0.260.0000.00817.23
8.0.250.0080.00016.98
8.0.240.0050.00216.95
8.0.230.0000.00716.95
8.0.220.0040.00416.86
8.0.210.0000.00816.81
8.0.200.0030.00316.81
8.0.190.0050.00316.79
8.0.180.0000.00816.87
8.0.170.0030.00516.95
8.0.160.0000.00716.85
8.0.150.0040.00416.80
8.0.140.0030.00416.86
8.0.130.0030.00313.33
8.0.120.0040.00416.78
8.0.110.0070.00016.93
8.0.100.0080.00016.77
8.0.90.0000.00716.77
8.0.80.0000.01416.88
8.0.70.0000.00816.67
8.0.60.0000.00816.76
8.0.50.0050.00316.76
8.0.30.0140.00517.20
8.0.20.0130.00517.40
8.0.10.0030.00516.86
8.0.00.0170.00216.62
7.4.330.0000.00615.00
7.4.320.0030.00316.38
7.4.300.0030.00316.51
7.4.290.0030.00316.61
7.4.280.0040.00416.55
7.4.270.0000.00716.59
7.4.260.0050.00216.52
7.4.250.0030.00516.47
7.4.240.0020.00516.61
7.4.230.0000.00716.41
7.4.220.0070.01116.52
7.4.210.0090.00916.50
7.4.200.0000.00716.70
7.4.160.0110.00716.61
7.4.150.0080.00817.40
7.4.140.0120.00617.86
7.4.130.0060.01116.65
7.4.120.0110.00916.52
7.4.110.0140.00416.47
7.4.100.0070.01116.38
7.4.90.0040.01816.55
7.4.80.0110.01119.39
7.4.70.0130.00616.70
7.4.60.0030.01316.41
7.4.50.0030.00316.34
7.4.40.0070.01016.34
7.4.30.0120.00316.66
7.4.00.0100.00714.74
7.3.330.0000.00513.22
7.3.320.0000.00513.21
7.3.310.0000.00716.36
7.3.300.0070.00016.23
7.3.290.0070.00716.34
7.3.280.0120.00416.31
7.3.270.0090.00917.40
7.3.260.0130.00316.34
7.3.250.0090.00916.50
7.3.240.0080.00816.49
7.3.230.0030.01316.46
7.3.210.0120.00916.49
7.3.200.0080.00819.39
7.3.190.0060.01616.58
7.3.180.0090.00616.57
7.3.170.0100.01216.41
7.3.160.0030.01416.54
7.3.120.0080.00814.87
7.3.110.0070.01014.62
7.3.100.0170.00014.70
7.3.90.0100.00314.47
7.3.80.0090.00614.79
7.3.70.0130.00014.98
7.3.60.0030.01014.60
7.3.50.0040.01114.66
7.3.40.0040.00814.78
7.3.30.0030.01614.57
7.3.20.0030.01016.73
7.3.10.0070.00716.41
7.3.00.0030.01016.35
7.2.330.0070.01016.72
7.2.320.0140.00316.46
7.2.310.0060.01016.56
7.2.300.0100.01316.42
7.2.290.0120.00616.84
7.2.250.0110.00715.02
7.2.240.0070.01014.90
7.2.230.0090.00914.90
7.2.220.0030.00614.88
7.2.210.0070.00715.31
7.2.200.0110.00315.04
7.2.190.0070.01014.85
7.2.180.0090.00915.15
7.2.170.0090.00915.04
7.2.60.0080.00317.10
7.1.330.0030.01015.42
7.1.320.0090.00015.67
7.1.310.0090.00615.61
7.1.300.0000.01115.79
7.1.290.0040.01115.37
7.1.280.0090.00915.75
7.1.270.0060.00915.64
7.1.260.0100.00315.83
7.1.200.0070.00715.83
7.1.100.0070.01018.34
7.1.70.0030.00317.09
7.1.60.0140.01119.70
7.1.50.0070.01416.54
7.1.00.0070.07322.37
7.0.200.0060.00316.88
7.0.140.0030.07322.09
7.0.100.0000.06019.91
7.0.90.0070.07720.13
7.0.80.0100.08319.92
7.0.70.0070.07719.92
7.0.60.0270.07019.85
7.0.50.0070.07320.28
7.0.40.0030.09019.95
7.0.30.0100.05719.97
7.0.20.0100.09319.97
7.0.10.0070.04319.93
7.0.00.0200.06720.04
5.6.280.0000.07721.07
5.6.250.0130.07020.52
5.6.240.0030.06320.64
5.6.230.0070.08320.55
5.6.220.0030.08020.63
5.6.210.0130.07320.70
5.6.200.0100.07020.91
5.6.190.0100.06720.99
5.6.180.0070.08720.91
5.6.170.0030.05321.05
5.6.160.0000.06720.97
5.6.150.0170.07020.91
5.6.140.0170.07721.08
5.6.130.0030.05021.01
5.6.120.0170.07720.97
5.6.110.0030.04720.90
5.6.100.0130.04721.05
5.6.90.0130.06321.07
5.6.80.0100.07020.39
5.6.70.0130.06320.47
5.6.60.0000.05320.34
5.6.50.0000.05720.36
5.6.40.0130.05320.25
5.6.30.0100.07320.39
5.6.20.0130.07320.35
5.6.10.0130.05020.32
5.6.00.0130.04720.27
5.5.380.0000.05320.38
5.5.370.0000.07720.52
5.5.360.0170.08020.30
5.5.350.0070.04020.42
5.5.340.0030.09020.84
5.5.330.0030.08320.79
5.5.320.0170.07720.75
5.5.310.0100.08020.87
5.5.300.0070.04720.85
5.5.290.0100.07020.84
5.5.280.0000.04720.72
5.5.270.0200.03720.82
5.5.260.0130.07020.89
5.5.250.0100.05020.68
5.5.240.0070.04320.16
5.5.230.0030.05020.23
5.5.220.0100.04020.05
5.5.210.0170.06320.20
5.5.200.0030.08320.18
5.5.190.0070.08019.94
5.5.180.0070.04720.13
5.5.160.0130.07720.13
5.5.150.0130.03720.05
5.5.140.0170.04020.18
5.5.130.0000.04320.18
5.5.120.0070.03720.17
5.5.110.0030.04319.91
5.5.100.0000.04720.08
5.5.90.0070.04019.95
5.5.80.0070.03720.00
5.5.70.0000.04020.02
5.5.60.0000.04020.05
5.5.50.0030.03019.98
5.5.40.0030.04020.01
5.5.30.0130.03020.00
5.5.20.0030.04319.95
5.5.10.0030.04020.07
5.5.00.0030.07320.03
5.4.450.0100.05019.36
5.4.440.0130.07019.36
5.4.430.0030.08019.46
5.4.420.0130.06019.17
5.4.410.0100.08019.40
5.4.400.0100.06719.05
5.4.390.0100.04019.03
5.4.380.0100.06719.16
5.4.370.0070.04319.13
5.4.360.0200.03319.13
5.4.350.0030.07719.05
5.4.340.0100.07319.19
5.4.320.0030.06319.05
5.4.310.0100.07019.12
5.4.300.0100.04019.05
5.4.290.0000.04019.12
5.4.280.0070.04718.84
5.4.270.0030.04019.09
5.4.260.0000.04319.04
5.4.250.0070.03719.05
5.4.240.0030.04018.89
5.4.230.0070.03719.13
5.4.220.0100.03019.11
5.4.210.0000.04319.22
5.4.200.0030.03719.12
5.4.190.0100.03018.84
5.4.180.0000.03319.11
5.4.170.0030.03019.13
5.4.160.0030.03719.22
5.4.150.0070.03719.19
5.4.140.0030.03716.20
5.4.130.0100.02716.37
5.4.120.0000.03316.36
5.4.110.0030.03716.36
5.4.100.0070.03316.29
5.4.90.0070.03016.43
5.4.80.0000.04016.49
5.4.70.0000.04716.32
5.4.60.0070.04316.31
5.4.50.0100.04316.30
5.4.40.0070.04016.50
5.4.30.0070.03316.30
5.4.20.0030.03316.42
5.4.10.0170.02316.51
5.4.00.0030.03315.82
5.3.290.0030.04014.79
5.3.280.0130.03014.59
5.3.270.0070.03014.64
5.3.260.0030.04314.68
5.3.250.0100.03014.71
5.3.240.0030.04014.73
5.3.230.0000.03714.60
5.3.220.0030.03714.57
5.3.210.0030.03714.59
5.3.200.0030.04014.68
5.3.190.0030.04014.64
5.3.180.0070.03714.50
5.3.170.0100.03014.64
5.3.160.0030.04014.50
5.3.150.0000.04014.54
5.3.140.0030.04014.63
5.3.130.0030.03314.65
5.3.120.0030.04714.53
5.3.110.0070.03014.62
5.3.100.0070.03314.04
5.3.90.0070.03313.99
5.3.80.0030.03714.08
5.3.70.0000.04014.02
5.3.60.0000.04013.91
5.3.50.0030.03713.97
5.3.40.0000.03713.99
5.3.30.0000.03713.80
5.3.20.0000.03713.61
5.3.10.0070.03313.64
5.3.00.0100.03013.71
5.2.170.0000.03711.26
5.2.160.0070.02711.06
5.2.150.0000.03011.29
5.2.140.0000.03011.04
5.2.130.0000.03011.14
5.2.120.0070.02011.18
5.2.110.0070.04711.23
5.2.100.0070.02311.00
5.2.90.0000.02711.24
5.2.80.0070.03011.16
5.2.70.0030.04010.96
5.2.60.0000.03010.89
5.2.50.0030.06311.09
5.2.40.0030.05710.91
5.2.30.0100.05311.08
5.2.20.0100.05310.89
5.2.10.0100.05710.82
5.2.00.0030.06010.66
5.1.60.0070.02710.00
5.1.50.0130.03310.11
5.1.40.0030.0609.84
5.1.30.0000.06010.26
5.1.20.0070.03710.29
5.1.10.0070.04010.15
5.1.00.0030.05310.14
5.0.50.0000.0408.57
5.0.40.0100.0208.52
5.0.30.0000.0378.30
5.0.20.0030.0208.29
5.0.10.0070.0338.23
5.0.00.0030.0638.01
4.4.90.0030.0177.75
4.4.80.0000.0337.75
4.4.70.0000.0307.75
4.4.60.0070.0337.75
4.4.50.0030.0337.75
4.4.40.0030.0537.75
4.4.30.0000.0177.75
4.4.20.0030.0337.75
4.4.10.0030.0277.75
4.4.00.0030.0307.75
4.3.110.0000.0377.75
4.3.100.0000.0337.75
4.3.90.0030.0177.75
4.3.80.0000.0577.75
4.3.70.0070.0337.75
4.3.60.0000.0377.75
4.3.50.0030.0337.75
4.3.40.0070.0437.75
4.3.30.0000.0277.75
4.3.20.0030.0337.75
4.3.10.0030.0277.75
4.3.00.0030.0237.75

preferences:
45.85 ms | 401 KiB | 5 Q