3v4l.org

run code in 300+ PHP versions simultaneously
<?php function breadcrumb($array) { $output = []; foreach ($array as $key => $value) { if (is_array($value)) { foreach (breadcrumb($value) as $breadcrumb) { $output[] = $key . ' > ' . $breadcrumb; } } else { $output[] = $key; } } return $output; } $array = [ 'note' => [ 'to' => [ 'user' => [ 'name' => 'First user', ], 'abc' => 123, 'lmn' => 4582, ], 'from' => 'Jani', 'heading' => 'Reminder', 'body' => [ 'abc' => 123 ] ] ]; var_dump(breadcrumb($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.5.10.0110.00718.17
8.5.00.0160.00920.19
8.4.150.0020.00014.05
8.4.140.0110.01017.68
8.4.130.0060.01318.43
8.4.120.0080.01218.79
8.4.110.0050.00618.62
8.4.100.0120.00517.85
8.4.90.0110.00820.63
8.4.80.0030.00520.64
8.4.70.0070.01218.83
8.4.60.0140.00820.75
8.4.50.0060.00220.77
8.4.40.0080.00017.82
8.4.30.0070.01420.50
8.4.20.0000.00819.89
8.4.10.0130.00319.63
8.3.280.0100.01020.10
8.3.270.0090.01116.54
8.3.260.0040.00516.64
8.3.250.0060.00716.74
8.3.240.0120.00716.61
8.3.230.0110.00716.81
8.3.220.0120.00718.92
8.3.210.0120.00616.66
8.3.200.0060.00416.56
8.3.190.0060.00217.18
8.3.180.0120.00619.16
8.3.170.0090.00917.42
8.3.160.0090.00916.74
8.3.150.0040.00417.05
8.3.140.0150.00316.77
8.3.130.0080.00018.28
8.3.120.0060.00318.78
8.3.110.0080.00320.94
8.3.100.0030.00716.65
8.3.90.0110.00726.77
8.3.80.0030.00616.50
8.3.70.0140.00418.31
8.3.60.0160.00018.30
8.3.50.0080.00619.54
8.3.40.0140.00019.21
8.3.30.0070.00718.70
8.3.20.0000.00824.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0120.00717.24
8.2.280.0130.00620.09
8.2.270.0150.00316.48
8.2.260.0070.00717.17
8.2.250.0040.00418.52
8.2.240.0070.00318.75
8.2.230.0000.00822.58
8.2.220.0040.00424.06
8.2.210.0040.01126.77
8.2.200.0030.00616.63
8.2.190.0030.01016.58
8.2.180.0070.01425.92
8.2.170.0100.00719.02
8.2.160.0120.00322.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.95
8.2.110.0030.00622.08
8.2.100.0070.00417.91
8.2.90.0090.00017.88
8.2.80.0030.00518.82
8.2.70.0050.00317.74
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0060.00618.20
8.2.30.0040.00418.11
8.2.20.0000.00719.42
8.2.10.0000.00717.63
8.2.00.0030.00519.32
8.1.330.0140.00516.04
8.1.320.0120.00716.07
8.1.310.0040.01116.61
8.1.300.0120.00317.78
8.1.290.0040.00730.84
8.1.280.0060.00925.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00620.44
8.1.230.0030.01017.95
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0030.00618.92
8.1.150.0040.00418.64
8.1.140.0060.00317.46
8.1.130.0050.00218.95
8.1.120.0050.00717.49
8.1.110.0040.00417.41
8.1.100.0050.00217.41
8.1.90.0000.00817.45
8.1.80.0000.00917.45
8.1.70.0000.00717.38
8.1.60.0050.00317.61
8.1.50.0060.00317.51
8.1.40.0050.00217.42
8.1.30.0060.00317.61
8.1.20.0000.00817.66
8.1.10.0090.00017.48
8.1.00.0000.00717.43
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00318.45
8.0.270.0070.00017.91
8.0.260.0060.00018.51
8.0.250.0030.00316.84
8.0.240.0040.00416.81
8.0.230.0040.00416.93
8.0.220.0080.00016.90
8.0.210.0030.00316.85
8.0.200.0030.00316.97
8.0.190.0060.00316.85
8.0.180.0040.00416.97
8.0.170.0040.00416.81
8.0.160.0040.00416.91
8.0.150.0040.00416.72
8.0.140.0060.00316.75
8.0.130.0030.00313.38
8.0.120.0000.00913.33
8.0.110.0030.00313.30
8.0.100.0060.00313.41
8.0.90.0030.00513.35
8.0.80.0030.00613.28
8.0.70.0080.00513.27
8.0.60.0140.00013.27
8.0.50.0130.00013.25
8.0.30.0100.00313.32
8.0.20.0070.00713.36
8.0.10.0080.00513.45
8.0.00.0000.00613.38
7.4.330.0030.00315.55
7.4.320.0000.00716.53
7.4.300.0000.00616.61
7.4.290.0060.00316.58
7.4.280.0070.00016.61
7.4.270.0050.00316.60
7.4.260.0000.00613.31
7.4.250.0160.00013.31
7.4.240.0000.01413.16
7.4.230.0120.00313.36
7.4.220.0110.00313.23
7.4.210.0100.00313.29
7.4.200.0050.00913.36
7.4.190.0100.00313.36
7.4.180.0130.00013.37
7.4.160.0070.00713.37
7.4.150.0060.00913.21
7.4.140.0070.00713.17
7.4.130.0100.00313.21
7.4.120.0060.00613.24
7.4.110.0100.00313.14
7.4.100.0090.00513.20
7.4.90.0100.00313.15
7.4.80.0060.00613.24
7.4.70.0110.00313.28
7.4.60.0000.00613.21
7.4.50.0030.01013.16
7.4.40.0090.00513.18
7.4.30.0100.00413.28
7.4.20.0070.00813.24
7.4.10.0100.00313.15
7.4.00.0120.00013.25
7.3.330.0030.00516.34
7.3.320.0130.00013.07
7.3.310.0140.00013.11
7.3.300.0150.00013.20
7.3.290.0120.00013.26
7.3.280.0110.00013.32
7.3.270.0140.00013.39
7.3.260.0030.00513.35
7.3.250.0050.00513.21
7.3.240.0110.00213.32
7.3.230.0130.00013.31
7.3.220.0030.00713.27
7.3.210.0060.00613.27
7.3.200.0110.00313.13
7.3.190.0110.00313.04
7.3.180.0060.00613.37
7.3.170.0050.00613.26
7.3.160.0100.00313.30
7.3.150.0050.00713.38
7.3.140.0030.00613.13
7.3.130.0050.00513.25
7.3.120.0040.00813.20
7.3.110.0110.00313.02
7.3.100.0060.00713.04
7.3.90.0080.00413.29
7.3.80.0050.00513.10
7.3.70.0110.00213.35
7.3.60.0100.00013.50
7.3.50.0090.00313.49
7.3.40.0060.00413.31
7.3.30.0050.00213.46
7.3.20.0070.00415.16
7.3.10.0060.00414.98
7.3.00.0030.00715.05

preferences:
36.26 ms | 403 KiB | 5 Q