3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'price' => [ 'cost' => 200, 'tax' => 10, 'total' => 210 ], 'otherKey' => 'etc' ], [ 'price' => [ 'cost' => 500, 'tax' => 50, 'total' => 550 ], 'otherKey' => 'etc' ], [ 'price' => [ 'cost' => 600, 'tax' => 60, 'total' => 660 ], 'otherKey' => 'etc' ], ]; $totals = []; array_walk_recursive( $array, function($leafNode, $key) use(&$totals) { if ($key === 'total') { $totals[] = $leafNode; } } ); var_export($totals);

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.0050.00316.65
8.5.00.0140.01020.02
8.4.150.0010.00014.05
8.4.140.0120.00917.30
8.4.130.0130.00717.91
8.4.120.0130.00723.84
8.4.110.0120.01022.42
8.4.100.0130.00917.74
8.4.90.0120.00320.63
8.4.80.0100.00917.73
8.4.70.0150.00817.86
8.4.60.0110.00718.85
8.4.50.0050.00422.34
8.4.40.0130.00717.50
8.4.30.0150.00320.64
8.4.20.0100.01018.05
8.4.10.0120.00325.83
8.3.280.0090.01018.52
8.3.270.0110.01016.49
8.3.260.0110.00816.59
8.3.250.0060.00319.10
8.3.240.0060.00816.70
8.3.230.0070.00316.70
8.3.220.0120.00717.07
8.3.210.0090.01018.36
8.3.200.0040.00416.76
8.3.190.0070.00217.10
8.3.180.0100.00718.96
8.3.170.0160.00319.14
8.3.160.0100.00717.29
8.3.150.0040.00417.08
8.3.140.0140.00320.82
8.3.130.0040.00416.50
8.3.120.0030.00620.61
8.3.110.0030.00516.53
8.3.100.0030.00619.98
8.3.90.0000.00826.77
8.3.80.0070.00319.36
8.3.70.0040.01116.58
8.3.60.0150.00618.27
8.3.50.0100.00323.50
8.3.40.0000.01518.56
8.3.30.0110.00418.51
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0090.00920.45
8.2.280.0120.00818.49
8.2.270.0120.00620.92
8.2.260.0100.00016.38
8.2.250.0030.01316.77
8.2.240.0000.00916.70
8.2.230.0040.00420.94
8.2.220.0040.00424.06
8.2.210.0050.00526.77
8.2.200.0070.00318.88
8.2.190.0110.01118.29
8.2.180.0100.01025.92
8.2.170.0110.00418.93
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0030.00724.66
8.2.130.0000.00726.16
8.2.120.0050.00326.35
8.2.110.0030.00622.10
8.2.100.0040.00819.76
8.2.90.0030.00517.91
8.2.80.0040.00419.11
8.2.70.0000.00817.50
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0060.00318.35
8.2.30.0000.00818.00
8.2.20.0000.00818.10
8.2.10.0020.00519.26
8.2.00.0040.00419.18
8.1.330.0100.00821.84
8.1.320.0080.00216.16
8.1.310.0040.00416.71
8.1.300.0090.00017.64
8.1.290.0060.00330.84
8.1.280.0040.01425.92
8.1.270.0040.00423.99
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.00322.65
8.1.230.0080.00420.72
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0040.00417.34
8.1.190.0050.00317.22
8.1.180.0060.00318.10
8.1.170.0060.00318.65
8.1.160.0040.00418.93
8.1.150.0000.00718.93
8.1.140.0000.00718.93
8.1.130.0000.00720.16
8.1.120.0040.00417.44
8.1.110.0040.00417.35
8.1.100.0040.00417.35
8.1.90.0060.00317.51
8.1.80.0040.00417.45
8.1.70.0030.00317.38
8.1.60.0070.00017.51
8.1.50.0040.00517.44
8.1.40.0050.00517.42
8.1.30.0110.00717.60
8.1.20.0130.00517.59
8.1.10.0140.00417.50
8.1.00.0130.00517.31
8.0.300.0080.00020.14
8.0.290.0080.00016.73
8.0.280.0030.00318.37
8.0.270.0080.00017.93
8.0.260.0040.00418.49
8.0.250.0000.00716.95
8.0.240.0050.00316.87
8.0.230.0040.00416.93
8.0.220.0040.00416.87
8.0.210.0040.00416.75
8.0.200.0000.00716.93
8.0.190.0040.00416.80
8.0.180.0070.00016.77
8.0.170.0070.00916.90
8.0.160.0090.00416.87
8.0.150.0120.00316.78
8.0.140.0070.00516.81
8.0.130.0110.00315.13
8.0.120.0100.00316.86
8.0.110.0100.00316.87
8.0.100.0090.00416.90
8.0.90.0070.00716.91
8.0.80.0130.00716.78
8.0.70.0090.00616.76
8.0.60.0090.00516.70
8.0.50.0100.00516.81
8.0.30.0110.00616.84
8.0.20.0110.00817.09
8.0.10.0120.00917.03
8.0.00.0100.00916.96
7.4.330.0020.00216.82
7.4.320.0000.00716.51
7.4.300.0040.00416.59
7.4.290.0080.00416.57
7.4.280.0060.00416.51
7.4.270.0040.01116.44
7.4.260.0110.00514.95
7.4.250.0050.00616.44
7.4.240.0080.00716.49
7.4.230.0100.00516.53
7.4.220.0100.00316.53
7.4.210.0120.00616.57
7.4.200.0090.00616.46
7.4.190.0130.00516.44
7.4.180.0130.00316.62
7.4.160.0130.00716.62
7.4.150.0170.00516.49
7.4.140.0110.00816.42
7.4.130.0090.01016.38
7.4.120.0100.01116.43
7.4.110.0120.00716.44
7.4.100.0130.00716.55
7.4.90.0120.00816.28
7.4.80.0090.01216.50
7.4.70.0170.00316.46
7.4.60.0110.01016.38
7.4.50.0130.00716.48
7.4.40.0130.00616.30
7.4.30.0120.00616.40
7.4.20.0170.00416.46
7.4.10.0100.01016.37
7.4.00.0110.00616.62
7.3.330.0070.00716.28
7.3.320.0070.00514.75
7.3.310.0050.00916.31
7.3.300.0100.00316.34
7.3.290.0080.00916.33
7.3.280.0160.00416.37
7.3.270.0150.00716.25
7.3.260.0150.00616.41
7.3.250.0120.00916.46
7.3.240.0120.00916.39
7.3.230.0130.00716.34
7.3.220.0080.01116.22
7.3.210.0130.00716.41
7.3.200.0130.01016.30
7.3.190.0180.00616.34
7.3.180.0090.01116.35
7.3.170.0150.00616.35
7.3.160.0130.00616.29
7.3.150.0110.00916.27
7.3.140.0140.00616.29
7.3.130.0110.00816.23
7.3.120.0160.00516.29
7.3.110.0110.01016.31
7.3.100.0110.00716.20
7.3.90.0070.01016.46
7.3.80.0100.00716.34
7.3.70.0120.01016.32
7.3.60.0060.01316.45
7.3.50.0100.01216.37
7.3.40.0110.00916.39
7.3.30.0130.00816.32
7.3.20.0130.00717.09
7.3.10.0130.00516.97
7.3.00.0100.00917.07

preferences:
33.05 ms | 403 KiB | 5 Q