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.60.0120.00618.43
8.3.50.0160.00521.95
8.3.40.0130.00618.84
8.3.30.0110.00419.22
8.3.20.0040.00420.21
8.3.10.0070.00021.76
8.3.00.0050.00319.55
8.2.180.0090.00618.42
8.2.170.0040.01122.96
8.2.160.0100.01019.48
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0030.00526.16
8.2.120.0030.00620.44
8.2.110.0060.00320.42
8.2.100.0100.00318.04
8.2.90.0040.00418.28
8.2.80.0050.00318.05
8.2.70.0030.00617.61
8.2.60.0040.00418.16
8.2.50.0090.00018.07
8.2.40.0000.00718.28
8.2.30.0000.00718.12
8.2.20.0040.00417.79
8.2.10.0000.00718.10
8.2.00.0000.00717.81
8.1.280.0150.00025.92
8.1.270.0040.00422.15
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00422.02
8.1.230.0070.00320.98
8.1.220.0040.00417.74
8.1.210.0090.00019.04
8.1.200.0100.00017.47
8.1.190.0030.00717.52
8.1.180.0090.00018.74
8.1.170.0030.00618.56
8.1.160.0070.00022.11
8.1.150.0000.00718.96
8.1.140.0000.00717.37
8.1.130.0070.00017.70
8.1.120.0070.00017.34
8.1.110.0000.00717.45
8.1.100.0030.00517.37
8.1.90.0070.00017.36
8.1.80.0050.00217.33
8.1.70.0030.00317.30
8.1.60.0000.00817.65
8.1.50.0040.00417.46
8.1.40.0000.00717.40
8.1.30.0040.00417.71
8.1.20.0040.00417.64
8.1.10.0030.00617.41
8.1.00.0000.00817.46
8.0.300.0000.00720.04
8.0.290.0030.00317.18
8.0.280.0070.00018.30
8.0.270.0030.00317.11
8.0.260.0050.00217.16
8.0.250.0030.00316.82
8.0.240.0000.00816.86
8.0.230.0060.00016.87
8.0.220.0000.00716.70
8.0.210.0040.00416.70
8.0.200.0070.00016.94
8.0.190.0000.00917.00
8.0.180.0000.00716.79
8.0.170.0000.00816.89
8.0.160.0000.00716.79
8.0.150.0080.00016.87
8.0.140.0030.00616.82
8.0.130.0000.00513.40
8.0.120.0040.00416.81
8.0.110.0060.00316.90
8.0.100.0050.00216.91
8.0.90.0040.00416.67
8.0.80.0070.01416.90
8.0.70.0000.00716.75
8.0.60.0040.00416.71
8.0.50.0040.00416.87
8.0.30.0130.00616.94
8.0.20.0110.01117.40
8.0.10.0000.00716.80
8.0.00.0040.01316.67
7.4.330.0000.00515.06
7.4.320.0030.00316.44
7.4.300.0030.00316.55
7.4.290.0040.00416.57
7.4.280.0040.00416.43
7.4.270.0030.00316.62
7.4.260.0030.00316.50
7.4.250.0000.00716.56
7.4.240.0050.00216.50
7.4.230.0040.00416.61
7.4.220.0150.00616.48
7.4.210.0060.01016.45
7.4.200.0070.00016.69
7.4.160.0120.00416.50
7.4.150.0140.01017.40
7.4.140.0100.00817.86
7.4.130.0090.00916.48
7.4.120.0070.01316.53
7.4.110.0090.01316.64
7.4.100.0070.01016.32
7.4.90.0070.01016.63
7.4.80.0100.00619.39
7.4.70.0060.01216.53
7.4.60.0080.00816.45
7.4.50.0030.00316.52
7.4.40.0130.00516.50
7.4.30.0110.00416.57
7.4.00.0030.01214.88
7.3.330.0030.00313.18
7.3.320.0050.00013.23
7.3.310.0060.00316.35
7.3.300.0030.00316.31
7.3.290.0050.01116.35
7.3.280.0080.00716.36
7.3.270.0110.00717.40
7.3.260.0080.00916.31
7.3.250.0080.01216.50
7.3.240.0110.00516.33
7.3.230.0100.00716.61
7.3.210.0060.01016.59
7.3.200.0100.00719.39
7.3.190.0060.01016.52
7.3.180.0100.00616.33
7.3.170.0100.00616.55
7.3.160.0090.00616.31
7.3.10.0100.00316.46
7.3.00.0060.00916.82
7.2.330.0120.00616.42
7.2.320.0160.00616.50
7.2.310.0030.02116.74
7.2.300.0130.00316.67
7.2.290.0080.00816.42
7.2.130.0100.00316.82
7.2.120.0040.00716.93
7.2.110.0030.01016.79
7.2.100.0030.01016.66
7.2.90.0000.01316.92
7.2.80.0100.00717.01
7.2.70.0030.00916.79
7.2.60.0050.00916.77
7.2.50.0110.00016.80
7.2.40.0040.01116.57
7.2.30.0060.00916.93
7.2.20.0030.00617.02
7.2.10.0090.00616.93
7.2.00.0070.00718.04
7.1.250.0060.00615.61
7.1.200.0070.00715.55
7.1.100.0050.00518.34
7.1.70.0110.00717.23
7.1.60.0070.01419.29
7.1.50.0130.01317.07
7.1.00.0070.07322.43
7.0.200.0780.00314.86
7.0.140.0000.03721.92
7.0.60.0030.03321.66
7.0.50.0100.04717.96
7.0.40.0000.05320.29
7.0.30.0230.03720.23
7.0.20.0270.07020.11
7.0.10.0130.07320.16
7.0.00.0000.04320.25
5.6.280.0100.06721.13
5.6.210.0130.06320.61
5.6.200.0030.04718.16
5.6.190.0100.06320.77
5.6.180.0230.04720.63
5.6.170.1200.04720.71
5.6.160.0130.07720.48
5.6.150.0070.05318.15
5.6.140.0170.07018.23
5.6.130.0130.07718.26
5.6.120.0070.07020.99
5.6.110.0130.08020.99
5.6.100.0170.04320.89
5.6.90.0070.04021.04
5.6.80.0070.08320.29
5.5.350.0330.06720.38
5.5.340.0100.04317.96
5.5.330.0070.08720.21
5.5.320.0270.05020.36
5.5.310.0300.07320.37
5.5.300.0030.04017.94
5.5.290.0030.08017.98
5.5.280.0030.06720.85
5.5.270.0170.07320.87
5.5.260.0130.07720.76
5.5.250.0130.06020.69
5.5.240.0270.03020.26
5.4.450.0300.05019.34
5.4.440.0200.05019.32
5.4.430.0170.04719.30
5.4.420.0300.07019.54
5.4.410.0270.07719.29
5.4.400.0270.04319.16
5.4.390.0270.06718.88
5.4.380.0170.04019.22
5.4.370.0130.07018.86
5.4.360.0200.05319.31
5.4.350.0270.03318.94
5.4.340.0230.07718.85
5.4.320.0170.07018.88
5.4.310.0330.05018.95
5.4.300.0330.07019.08
5.4.290.0470.06318.94
5.4.280.0300.07319.09
5.4.270.0370.05018.98
5.4.260.0230.03718.87
5.4.250.0300.04719.15
5.4.240.0430.06019.21
5.4.230.0370.06318.87
5.4.220.0270.07319.10
5.4.210.0330.06319.30
5.4.200.0370.04718.97
5.4.190.0330.04319.08
5.4.180.0400.06019.07
5.4.170.0330.04719.18
5.4.160.0270.07719.14
5.4.150.0370.06318.92
5.4.140.0270.07016.37
5.4.130.0300.05016.31
5.4.120.0270.05716.41
5.4.110.0300.06316.45
5.4.100.0300.03716.35
5.4.90.0170.04016.58
5.4.80.0200.05016.17
5.4.70.0330.06316.35
5.4.60.0330.07016.48
5.4.50.0230.07016.18
5.4.40.0300.03016.56
5.4.30.0230.06316.52
5.4.20.0170.05316.23
5.4.10.0130.04016.53
5.4.00.0170.04715.80
5.3.290.0270.07014.51
5.3.280.0300.07014.43
5.3.270.0270.07314.47
5.3.260.0230.04314.55
5.3.250.0230.06314.69
5.3.240.0300.06714.51
5.3.230.0330.07014.45
5.3.220.0230.07714.41
5.3.210.0330.06014.42
5.3.200.0300.07314.55
5.3.190.0230.04714.50
5.3.180.0230.06314.43
5.3.170.0230.04714.41
5.3.160.0270.07314.44
5.3.150.0270.06314.47
5.3.140.0130.04714.48
5.3.130.0270.05014.53
5.3.120.0200.04714.45
5.3.110.0300.04014.48
5.3.100.0200.06013.99
5.3.90.0200.06013.88
5.3.80.0270.07013.81
5.3.70.0200.05013.79
5.3.60.0230.05013.86
5.3.50.0270.05013.78
5.3.40.0230.07013.93
5.3.30.0270.05013.70
5.3.20.0230.04313.64
5.3.10.0230.03713.51
5.3.00.0330.06713.66
5.2.170.0270.05311.30
5.2.160.0230.05011.00
5.2.150.0130.03311.00
5.2.140.0200.03311.15
5.2.130.0370.02310.94
5.2.120.0230.02710.96
5.2.110.0200.04310.94
5.2.100.0330.05310.99
5.2.90.0330.05011.00
5.2.80.0230.06011.10
5.2.70.0200.03311.14
5.2.60.0230.04011.05
5.2.50.0200.02711.06
5.2.40.0100.03010.90
5.2.30.0170.03710.99
5.2.20.0270.02711.05
5.2.10.0130.03010.82
5.2.00.0130.03310.57
5.1.60.0130.02310.04
5.1.50.0130.02710.02
5.1.40.0130.0239.98
5.1.30.0130.02310.23
5.1.20.0170.02310.29
5.1.10.0100.03010.15
5.1.00.0070.0309.93
5.0.50.0100.0209.90
5.0.40.0030.0279.90
5.0.30.0100.0309.90
5.0.20.0030.0279.90
5.0.10.0030.0239.90
5.0.00.0100.0309.90
4.4.90.0100.0239.90
4.4.80.0100.0179.90
4.4.70.0100.0109.90
4.4.60.0030.0179.90
4.4.50.0070.0209.90
4.4.40.0070.0239.90
4.4.30.0100.0139.90
4.4.20.0070.0179.90
4.4.10.0030.0179.90
4.4.00.0070.0239.90
4.3.110.0100.0179.90
4.3.100.0100.0179.90
4.3.90.0100.0279.90
4.3.80.0100.0209.90
4.3.70.0030.0179.90
4.3.60.0100.0139.90
4.3.50.0070.0179.90
4.3.40.0030.0239.90
4.3.30.0000.0179.90
4.3.20.0030.0179.90
4.3.10.0000.0179.90
4.3.00.0030.0139.90

preferences:
32.99 ms | 401 KiB | 5 Q