3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array ( 'bike' => array ( 'id' => 29, 'type' => 'a', 'time' => '9', ), 'car' => array ( 0 => array ( 'id' => 189, 'type' => 'b', 'time' => '18', ), 1 => array ( 'id' => 190, 'type' => 'c', 'time' => '14', ), ), 'plane' => array ( 'id' => 313, 'type' => 'd', 'time' => '20', ), ); $output = []; array_walk_recursive($input, function($value, $key) use (&$output) { if ($key == "id") { $output[] = $value; } }, $output); var_export($output);

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.4.120.0030.00624.23
8.4.110.0110.00522.35
8.4.100.0090.01318.74
8.4.90.0150.00519.00
8.4.80.0090.00618.79
8.4.70.0120.00817.93
8.4.60.0130.00718.68
8.4.50.0080.01018.99
8.4.40.0100.01018.58
8.4.30.0090.00918.71
8.4.20.0100.01020.56
8.4.10.0090.00619.68
8.3.250.0080.01119.04
8.3.240.0100.01017.07
8.3.230.0100.00916.63
8.3.220.0030.00618.81
8.3.210.0150.00416.61
8.3.200.0110.00116.53
8.3.190.0080.01217.07
8.3.180.0100.01017.03
8.3.170.0090.00920.75
8.3.160.0140.00417.11
8.3.150.0090.00916.98
8.3.140.0080.00019.05
8.3.130.0040.01218.25
8.3.120.0040.00420.72
8.3.110.0030.01320.94
8.3.100.0060.01324.06
8.3.90.0090.00926.77
8.3.80.0030.00618.68
8.3.70.0120.00318.09
8.3.60.0420.01325.92
8.3.50.0230.00625.92
8.3.40.0380.00325.92
8.3.30.0300.00725.92
8.3.20.0410.00025.92
8.3.10.0230.01325.92
8.3.00.0310.01025.92
8.2.290.0110.00820.46
8.2.280.0110.00716.57
8.2.270.0090.00919.07
8.2.260.0040.00418.37
8.2.250.0070.00316.54
8.2.240.0120.00318.96
8.2.230.0120.00322.58
8.2.220.0120.00637.54
8.2.210.0060.00326.77
8.2.200.0090.00316.38
8.2.190.0170.00718.43
8.2.180.0300.00925.92
8.2.170.0420.00625.92
8.2.160.0430.00625.92
8.2.150.0350.00925.92
8.2.140.0380.00425.92
8.2.130.0390.00825.92
8.2.120.0380.01425.92
8.2.110.0340.01025.92
8.2.100.0290.01125.92
8.2.90.0370.00625.92
8.2.80.0420.00325.92
8.2.70.0270.00725.92
8.2.60.0240.00925.92
8.2.50.0320.00725.92
8.2.40.0190.02325.92
8.2.30.0310.01325.92
8.2.20.0300.01225.92
8.2.10.0350.01025.92
8.2.00.0410.00325.92
8.1.330.0110.00822.12
8.1.320.0110.00916.00
8.1.310.0080.00016.55
8.1.300.0120.00618.04
8.1.290.0040.00430.84
8.1.280.0340.01025.92
8.1.270.0530.00825.92
8.1.260.0390.00725.92
8.1.250.0270.00925.92
8.1.240.0330.00925.92
8.1.230.0300.01525.92
8.1.220.0310.01225.92
8.1.210.0330.01025.92
8.1.200.0240.02025.92
8.1.190.0280.01625.92
8.1.180.0360.00625.92
8.1.170.0200.01725.92
8.1.160.0260.01025.92
8.1.150.0310.00625.92
8.1.140.0290.00725.92
8.1.130.0320.01425.92
8.1.120.0330.01225.92
8.1.110.0330.00325.92
8.1.100.0300.00725.92
8.1.90.0300.00625.92
8.1.80.0230.01625.92
8.1.70.0350.00725.92
8.1.60.0440.00925.92
8.1.50.0330.01225.92
8.1.40.0300.01025.92
8.1.30.0350.00625.92
8.1.20.0340.01325.92
8.1.10.0410.00725.92
8.1.00.0350.01125.92

preferences:
27.41 ms | 403 KiB | 5 Q