3v4l.org

run code in 300+ PHP versions simultaneously
<?php function arrayStack( $array, $dash ){ foreach($array as $value){ if(isset($value['id'])){ echo str_repeat("-", $dash).$value['id'].'<br/>'; }else{ $dash++; arrayStack( $value, $dash ); $dash--; } } } arrayStack( $myArray, 0 );

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.0100.00718.51
8.3.50.0180.00321.95
8.3.40.0100.00718.51
8.3.30.0070.00718.82
8.3.20.0080.00020.34
8.3.10.0030.00522.10
8.3.00.0000.00822.58
8.2.180.0100.01016.63
8.2.170.0150.00922.96
8.2.160.0110.00720.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0110.00726.16
8.2.120.0040.00419.36
8.2.110.0000.00922.07
8.2.100.0090.00317.72
8.2.90.0050.00319.09
8.2.80.0030.00717.97
8.2.70.0040.00417.75
8.2.60.0080.00017.80
8.2.50.0050.00318.10
8.2.40.0040.00418.09
8.2.30.0080.00017.88
8.2.20.0050.00317.58
8.2.10.0000.00817.75
8.2.00.0050.00317.55
8.1.280.0140.00725.92
8.1.270.0070.00022.24
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0030.00717.36
8.1.230.0040.00717.82
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0000.01017.13
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0040.00418.49
8.1.160.0000.00721.88
8.1.150.0070.00018.49
8.1.140.0000.00717.39
8.1.130.0030.00517.72
8.1.120.0000.00717.39
8.1.110.0040.00417.22
8.1.100.0030.00317.27
8.1.90.0000.00717.35
8.1.80.0050.00317.47
8.1.70.0030.00317.40
8.1.60.0030.00517.55
8.1.50.0000.00717.41
8.1.40.0040.00417.35
8.1.30.0030.00517.53
8.1.20.0040.00417.65
8.1.10.0040.00417.39
8.1.00.0040.00417.37
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.44
8.0.270.0000.00817.09
8.0.260.0030.00316.73
8.0.250.0000.00716.96
8.0.240.0050.00316.85
8.0.230.0070.00016.95
8.0.220.0070.00016.80
8.0.210.0030.00316.89
8.0.200.0060.00016.84
8.0.190.0000.00716.86
8.0.180.0040.00416.91
8.0.170.0080.00016.90
8.0.160.0050.00316.95
8.0.150.0000.00916.87
8.0.140.0040.00416.87
8.0.130.0070.00013.28
8.0.120.0040.00416.86
8.0.110.0050.00216.76
8.0.100.0050.00316.77
8.0.90.0000.00716.92
8.0.80.0150.00616.87
8.0.70.0040.00416.97
8.0.60.0040.00416.74
8.0.50.0020.00516.79
8.0.30.0090.01016.94
8.0.20.0110.01017.40
8.0.10.0060.00317.07
8.0.00.0090.00916.64
7.4.330.0050.00015.02
7.4.320.0000.00716.51
7.4.300.0000.00716.42
7.4.290.0060.00316.52
7.4.280.0000.00716.54
7.4.270.0040.00416.54
7.4.260.0030.00316.46
7.4.250.0040.00416.35
7.4.240.0020.00516.40
7.4.230.0040.00316.35
7.4.220.0070.01116.52
7.4.210.0070.00616.57
7.4.200.0050.00316.32
7.4.190.0040.00416.59
7.4.160.0080.00816.34
7.4.150.0090.00817.40
7.4.140.0140.00517.86
7.4.130.0100.00816.29
7.4.120.0120.00516.42
7.4.110.0110.01116.54
7.4.100.0200.00416.61
7.4.90.0080.00816.48
7.4.80.0110.00719.39
7.4.70.0130.00316.48
7.4.60.0000.01516.41
7.4.50.0000.00816.34
7.4.40.0030.00922.77
7.4.30.0070.01116.55
7.4.00.0070.01014.96
7.3.330.0000.00513.36
7.3.320.0050.00013.08
7.3.310.0000.00916.21
7.3.300.0030.00316.38
7.3.290.0060.01016.43
7.3.280.0100.00916.36
7.3.270.0110.00817.40
7.3.260.0180.00616.52
7.3.250.0110.00616.51
7.3.240.0100.00716.46
7.3.230.0060.01316.53
7.3.210.0120.00416.34
7.3.200.0160.00319.39
7.3.190.0150.00316.51
7.3.180.0000.01516.50
7.3.170.0060.00916.37
7.3.160.0050.01416.50
7.3.120.0120.00614.81
7.3.110.0030.01014.80
7.3.100.0070.00714.85
7.3.90.0030.00714.77
7.3.80.0080.00614.69
7.3.70.0040.00814.67
7.3.60.0090.00514.63
7.3.50.0080.00814.79
7.3.40.0040.00914.83
7.3.30.0070.00814.73
7.3.20.0100.00316.71
7.3.10.0070.00716.58
7.3.00.0030.01216.39
7.2.330.0000.01716.39
7.2.320.0100.01316.55
7.2.310.0080.00816.66
7.2.300.0130.00316.62
7.2.290.0160.00016.46
7.2.250.0100.01015.19
7.2.240.0050.01214.96
7.2.230.0090.00814.95
7.2.220.0040.00815.06
7.2.210.0070.01014.88
7.2.200.0070.00514.85
7.2.190.0080.00515.04
7.2.180.0030.01014.95
7.2.170.0090.00314.81
7.2.160.0100.00314.82
7.2.150.0030.01516.58
7.2.140.0150.00016.59
7.2.130.0030.01416.70
7.2.120.0060.00616.72
7.2.110.0070.00716.93
7.2.100.0140.00316.65
7.2.90.0100.00716.82
7.2.80.0070.00716.74
7.2.70.0140.00316.62
7.2.60.0030.01116.80
7.2.50.0000.01716.83
7.2.40.0040.01516.75
7.2.30.0080.00816.89
7.2.20.0000.01416.89
7.2.10.0070.01016.80
7.2.00.0050.01217.98
7.1.330.0070.00715.75
7.1.320.0030.01115.69
7.1.310.0100.00515.74
7.1.300.0050.00715.62
7.1.290.0020.01215.43
7.1.280.0050.00715.63
7.1.270.0050.00715.55
7.1.260.0080.00515.73
7.1.250.0150.00315.69
7.1.200.0000.01215.55
7.1.100.0030.01018.14
7.1.70.0050.00316.89
7.1.60.0170.00719.82
7.1.50.0070.01816.99
7.1.00.0070.07322.57
7.0.200.0160.00316.46
7.0.140.0100.06721.99
7.0.60.0130.07019.99
7.0.50.0100.07317.88
7.0.40.0000.04720.02
7.0.30.0570.06320.13
7.0.20.0200.03720.20
7.0.10.0100.06320.30
7.0.00.0070.04020.09
5.6.280.0030.07321.10
5.6.210.0070.07320.64
5.6.200.0200.07318.23
5.6.190.0070.04320.46
5.6.180.0230.05020.61
5.6.170.0130.04320.61
5.6.160.0100.08020.54
5.6.150.0130.03018.15
5.6.140.0100.07018.14
5.6.130.0100.04018.14
5.6.120.0130.07321.04
5.6.110.0100.08320.89
5.6.100.0070.07021.03
5.6.90.0130.07321.08
5.6.80.0030.08720.41
5.6.70.4570.03720.39
5.5.350.0270.07320.53
5.5.340.0200.05317.96
5.5.330.0100.06020.27
5.5.320.0230.06720.25
5.5.310.0130.04720.34
5.5.300.0130.07717.97
5.5.290.0070.08717.92
5.5.280.0130.08320.77
5.5.270.0030.08020.78
5.5.260.0070.08320.86
5.5.250.0000.08720.59
5.5.240.0370.06320.15
5.4.450.0430.06719.58
5.4.440.0630.06019.34
5.4.430.0130.07319.31
5.4.420.0130.05019.46
5.4.410.0100.05719.02
5.4.400.0800.06318.71
5.4.390.1070.05018.73
5.4.380.0470.06318.79
5.4.370.0100.03318.76
5.4.360.0070.03718.59
5.4.350.0120.04012.02
5.4.340.0060.03512.02
5.4.320.0060.03512.50
5.4.310.0050.04012.50
5.4.300.0040.04312.50
5.4.290.0040.04012.50
5.4.280.0070.03612.40
5.4.270.0270.04018.96
5.4.260.0130.04718.77
5.4.250.0170.04718.99
5.4.240.0070.06718.70
5.4.230.0100.07018.76
5.4.220.0170.06718.90
5.4.210.0100.05718.94
5.4.200.0070.07018.99
5.4.190.0030.07719.02
5.4.180.0170.05718.65
5.4.170.0100.05018.65
5.4.160.0070.06018.73
5.4.150.0230.06018.95
5.4.140.0030.05716.41
5.4.130.0070.07016.50
5.4.120.0030.08016.36
5.4.110.0170.05016.47
5.4.100.0130.06316.59
5.4.90.0030.07016.55
5.4.80.0100.05016.40
5.4.70.0070.05016.60
5.4.60.0130.06716.49
5.4.50.0030.05316.46
5.4.40.0030.05316.42
5.4.30.0100.05316.48
5.4.20.0170.06016.39
5.4.10.0070.06716.45
5.4.00.0030.05316.05
5.3.290.0070.03712.80
5.3.280.0130.04714.57
5.3.270.0030.06014.61
5.3.260.0000.06014.70
5.3.250.0100.06014.59
5.3.240.0100.07714.67
5.3.230.0130.04714.43
5.3.220.0070.07314.39
5.3.210.0130.05014.47
5.3.200.0130.04714.59
5.3.190.0170.04314.70
5.3.180.0100.06714.46
5.3.170.0100.05314.39
5.3.160.0130.06314.78
5.3.150.0170.05314.63
5.3.140.0030.05714.52
5.3.130.0170.04714.71
5.3.120.0170.07314.56
5.3.110.0130.06714.71
5.3.100.0130.05014.02
5.3.90.0100.07014.14
5.3.80.0170.06314.24
5.3.70.0000.06313.99
5.3.60.0100.04713.99
5.3.50.0030.06714.11
5.3.40.0100.06314.13
5.3.30.0100.04313.98
5.3.20.0070.07013.75
5.3.10.0030.05013.66
5.3.00.0000.06713.63
5.2.170.0100.03711.13
5.2.160.0200.04311.04
5.2.150.0130.05010.97
5.2.140.0100.05711.21
5.2.130.0100.03710.93
5.2.120.0100.05311.00
5.2.110.0100.04711.16
5.2.100.0100.04711.09
5.2.90.0030.04711.17
5.2.80.0070.04311.07
5.2.70.0000.06011.19
5.2.60.0070.07311.12
5.2.50.0100.03711.21
5.2.40.0100.03710.96
5.2.30.0100.06010.87
5.2.20.0100.04010.94
5.2.10.0100.04710.81
5.2.00.0030.06010.80
5.1.60.0070.0309.97
5.1.50.0070.03710.00
5.1.40.0070.03310.07
5.1.30.0030.03710.31
5.1.20.0000.05310.33
5.1.10.0030.0379.90
5.1.00.0070.03310.12
5.0.50.0000.0438.49
5.0.40.0030.0278.40
5.0.30.0070.0408.28
5.0.20.0100.0238.34
5.0.10.0070.0338.14
5.0.00.0070.0708.38
4.4.90.0100.0236.89
4.4.80.0000.0236.89
4.4.70.0000.0236.89
4.4.60.0030.0276.89
4.4.50.0030.0306.89
4.4.40.0030.0376.89
4.4.30.0030.0236.89
4.4.20.0000.0236.89
4.4.10.0070.0276.89
4.4.00.0030.0436.89
4.3.110.0000.0236.89
4.3.100.0000.0336.89
4.3.90.0200.0306.89
4.3.80.0130.0236.89
4.3.70.0000.0276.89
4.3.60.0100.0236.90
4.3.50.0000.0236.90
4.3.40.0030.0436.90
4.3.30.0000.0236.90
4.3.20.0070.0176.90
4.3.10.0030.0276.90
4.3.00.0130.0207.02

preferences:
51.67 ms | 401 KiB | 5 Q