3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'id' => 1, 'pid' => 1, 'name' => 'admin', 'children' => [ 'id' => 158, 'pid' => 1, 'name' => '000c', 'children' => [ ['id' => 93, 'pid' => 72, 'name' => '000c11'], ['id' => 96, 'pid' => 72, 'name' => '000c12'], ] ] ] ]; $arr = []; array_walk_recursive($array, function($v, $k, &$arr) { if($k === "name") $arr[] = $v; }, $arr); $arr = array_reverse($arr); print_r($arr);

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.70.0140.00018.55
8.3.60.0130.00618.39
8.3.50.0100.01122.06
8.3.40.0070.00718.84
8.3.30.0080.00619.09
8.3.20.0000.01420.30
8.3.10.0020.00521.90
8.3.00.0040.00419.56
8.2.190.0230.00716.58
8.2.180.0110.00718.48
8.2.170.0000.01422.96
8.2.160.0110.00320.35
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00020.64
8.2.110.0090.00020.39
8.2.100.0130.00017.97
8.2.90.0040.00419.18
8.2.80.0000.00918.05
8.2.70.0090.00017.63
8.2.60.0000.00818.05
8.2.50.0000.00918.07
8.2.40.0040.00418.22
8.2.30.0070.00018.04
8.2.20.0000.00717.81
8.2.10.0040.00418.12
8.2.00.0040.00417.77
8.1.280.0040.01125.92
8.1.270.0080.00022.00
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00318.99
8.1.230.0120.00017.77
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0050.00517.38
8.1.190.0030.00717.52
8.1.180.0000.00918.82
8.1.170.0000.00818.56
8.1.160.0040.00422.01
8.1.150.0040.00418.90
8.1.140.0060.00317.50
8.1.130.0000.00717.70
8.1.120.0030.00317.36
8.1.110.0000.00717.47
8.1.100.0040.00417.34
8.1.90.0040.00417.44
8.1.80.0000.00817.49
8.1.70.0040.00417.38
8.1.60.0030.00617.63
8.1.50.0030.00617.43
8.1.40.0000.00717.55
8.1.30.0000.00817.58
8.1.20.0000.00817.69
8.1.10.0050.00317.49
8.1.00.0030.00517.34
8.0.300.0050.00318.77
8.0.290.0000.00717.00
8.0.280.0030.00318.44
8.0.270.0000.00717.11
8.0.260.0030.00317.20
8.0.250.0000.00616.92
8.0.240.0040.00416.91
8.0.230.0040.00416.82
8.0.220.0070.00016.80
8.0.210.0050.00316.92
8.0.200.0060.00017.02
8.0.190.0030.00616.93
8.0.180.0000.00716.83
8.0.170.0040.00416.87
8.0.160.0000.00717.00
8.0.150.0000.00716.88
8.0.140.0000.00716.89
8.0.130.0000.00613.33
8.0.120.0040.00416.80
8.0.110.0080.00016.84
8.0.100.0040.00416.98
8.0.90.0070.00016.86
8.0.80.0120.00416.96
8.0.70.0000.00816.77
8.0.60.0000.00716.80
8.0.50.0000.00716.83
8.0.30.0080.01117.14
8.0.20.0140.00617.40
8.0.10.0000.00717.10
8.0.00.0110.00916.90
7.4.330.0020.00215.07
7.4.320.0040.00416.65
7.4.300.0000.00616.40
7.4.290.0080.00016.51
7.4.280.0000.00716.35
7.4.270.0030.00316.43
7.4.260.0000.00816.66
7.4.250.0080.00016.46
7.4.240.0020.00516.54
7.4.230.0030.00316.49
7.4.220.0060.01216.46
7.4.210.0140.00716.40
7.4.200.0070.00016.60
7.4.160.0080.00816.59
7.4.150.0060.01217.40
7.4.140.0050.01317.86
7.4.130.0070.01016.51
7.4.120.0120.00816.40
7.4.110.0090.01116.31
7.4.100.0060.01016.43
7.4.90.0150.00316.51
7.4.80.0070.01119.39
7.4.70.0150.00316.42
7.4.60.0070.01016.34
7.4.50.0040.00416.34
7.4.40.0030.01416.46
7.4.30.0090.00616.31
7.4.00.0070.01114.89
7.3.330.0070.00013.19
7.3.320.0060.00013.36
7.3.310.0000.00816.32
7.3.300.0050.00216.34
7.3.290.0080.00616.36
7.3.280.0060.01016.38
7.3.270.0100.00717.40
7.3.260.0120.00616.35
7.3.250.0070.01116.32
7.3.240.0100.01016.52
7.3.230.0110.00616.57
7.3.210.0100.00716.46
7.3.200.0090.01219.39
7.3.190.0110.00616.38
7.3.180.0100.00716.71
7.3.170.0040.01416.45
7.3.160.0060.01716.38
7.3.120.0090.00914.71
7.3.110.0070.01014.80
7.3.100.0100.00614.58
7.3.90.0080.00414.74
7.3.80.0030.00715.04
7.3.70.0030.01214.46
7.3.60.0030.01014.61
7.3.50.0000.01214.75
7.3.40.0030.01014.52
7.3.30.0030.01014.95
7.3.20.0030.01116.78
7.3.10.0000.01316.48
7.3.00.0000.00916.65
7.2.330.0060.01316.59
7.2.320.0070.01416.37
7.2.310.0090.01316.50
7.2.300.0030.01316.54
7.2.290.0130.00316.72
7.2.250.0180.00014.95
7.2.240.0080.01115.07
7.2.230.0060.00915.19
7.2.220.0000.01215.31
7.2.210.0080.00414.99
7.2.200.0030.01315.02
7.2.190.0030.00714.81
7.2.180.0130.00314.68
7.2.170.0070.01015.04
7.2.00.0030.01019.33
7.1.330.0100.00315.79
7.1.320.0040.00415.90
7.1.310.0000.00915.84
7.1.300.0040.00715.71
7.1.290.0030.01015.86
7.1.280.0030.00915.98
7.1.270.0100.00315.93
7.1.260.0000.01215.86
7.1.100.0030.01017.86
7.1.70.0000.00717.27
7.1.60.0110.00819.29
7.1.50.0060.01916.65
7.1.00.0030.08022.34
7.0.200.0880.00714.92
7.0.140.0100.03722.21
7.0.60.0000.07319.93
7.0.50.0100.07017.91
7.0.40.0100.06020.04
7.0.30.0200.05720.19
7.0.20.0130.04720.10
7.0.10.0070.08020.20
7.0.00.0000.04320.23
5.6.280.0070.07020.91
5.6.210.0100.07720.67
5.6.200.0030.06018.14
5.6.190.0100.07020.64
5.6.180.0300.05720.61
5.6.170.1070.04320.47
5.6.160.0130.04720.52
5.6.150.0030.06318.19
5.6.140.0100.08018.13
5.6.130.0230.06318.21
5.6.120.0130.09320.97
5.6.110.0100.07721.14
5.6.100.0030.08020.89
5.6.90.0000.09020.99
5.6.80.0100.07720.53
5.5.350.0170.02720.40
5.5.340.0000.04717.99
5.5.330.0000.05020.28
5.5.320.0270.03720.38
5.5.310.0300.03720.30
5.5.300.0030.07017.99
5.5.290.0030.09017.98
5.5.280.0100.05720.77
5.5.270.0130.07720.86
5.5.260.0100.08020.96
5.5.250.0100.05720.56
5.5.240.0070.07320.27
5.4.450.0200.06019.34
5.4.440.0600.06019.61
5.4.430.0100.05319.38
5.4.420.0000.06319.54
5.4.410.0100.05019.41
5.4.400.0230.06019.25
5.4.390.0130.04719.26
5.4.380.0200.05018.82
5.4.370.0070.04018.45
5.4.360.0070.04318.45
5.4.350.0130.03718.78
5.4.340.0070.04018.68
5.4.320.0100.03718.63
5.4.310.0100.04718.68
5.4.300.0100.05718.42
5.4.290.0130.05318.66
5.4.280.0130.03318.67
5.4.270.0130.03318.69
5.4.260.0200.03718.67
5.4.250.0030.04718.53
5.4.240.0100.04018.54
5.4.230.0100.03718.44
5.4.220.0030.04318.49
5.4.210.0130.03718.69
5.4.200.0100.04716.52
5.4.190.0130.03318.74
5.4.180.0130.03318.73
5.4.170.0070.04018.66
5.4.160.0030.04018.68
5.4.150.0070.04018.66
5.4.140.0100.04016.19
5.4.130.0170.03316.16
5.4.120.0070.03716.28
5.4.110.0070.04016.17
5.4.100.0070.03716.13
5.4.90.0070.03716.35
5.4.80.0030.04016.13
5.4.70.0070.03716.13
5.4.60.0100.04016.17
5.4.50.0130.03016.14
5.4.40.0070.03716.33
5.4.30.0030.04316.14
5.4.20.0170.03016.11
5.4.10.0100.03316.22
5.4.00.0030.04015.66
5.3.290.0230.03714.54
5.3.280.0100.05014.50
5.3.270.0070.06014.61
5.3.260.0070.06014.50
5.3.250.0100.05014.49
5.3.240.0170.05014.47
5.3.230.0270.05314.54
5.3.220.0100.05314.62
5.3.210.0100.04714.47
5.3.200.0070.03714.41
5.3.190.0100.03714.42
5.3.180.0030.04014.41
5.3.170.0070.03714.48
5.3.160.0100.03714.45
5.3.150.0100.04714.53
5.3.140.0030.04014.45
5.3.130.0070.04014.58
5.3.120.0030.04014.40
5.3.110.0070.04314.57
5.3.100.0070.04014.09
5.3.90.0100.03314.05
5.3.80.0070.05013.95
5.3.70.0200.04314.05
5.3.60.0130.04013.85
5.3.50.0130.03313.96
5.3.40.0070.04713.84
5.3.30.0130.03713.84
5.3.20.0170.03013.70
5.3.10.0070.04013.57
5.3.00.0070.05313.53
5.2.170.0070.03711.12
5.2.160.0070.03311.15
5.2.150.0100.03011.23
5.2.140.0030.03311.23
5.2.130.0100.03010.96
5.2.120.0130.02311.19
5.2.110.0170.02711.06
5.2.100.0170.02711.06
5.2.90.0130.04011.17
5.2.80.0070.03011.00
5.2.70.0100.03310.95
5.2.60.0230.01710.91
5.2.50.0070.03310.90
5.2.40.0100.02710.90
5.2.30.0000.04310.98
5.2.20.0070.02710.82
5.2.10.0070.03010.89
5.2.00.0100.03010.81
5.1.60.0030.0279.98
5.1.50.0100.02310.07
5.1.40.0070.0309.89
5.1.30.0170.03310.26
5.1.20.0100.03310.48
5.1.10.0130.03010.04
5.1.00.0100.02310.14
5.0.50.0070.0308.55
5.0.40.0030.0308.38
5.0.30.0000.0438.24
5.0.20.0030.0278.15
5.0.10.0070.0178.23
5.0.00.0000.0378.22
4.4.90.0000.0205.82
4.4.80.0070.0135.85
4.4.70.0100.0175.92
4.4.60.0070.0135.75
4.4.50.0100.0175.80
4.4.40.0030.0305.80
4.4.30.0000.0205.79
4.4.20.0000.0205.89
4.4.10.0030.0235.91
4.4.00.0030.0335.96
4.3.110.0070.0205.78
4.3.100.0030.0175.86
4.3.90.0000.0205.86
4.3.80.0070.0275.71
4.3.70.0030.0135.73
4.3.60.0030.0235.80
4.3.50.0070.0135.73
4.3.40.0030.0275.72
4.3.30.0000.0174.47
4.3.20.0000.0174.49
4.3.10.0000.0174.41
4.3.00.0100.0237.37

preferences:
79.12 ms | 401 KiB | 5 Q