3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sweet = array('a' => 'apple', 'b' => 'banana'); $fruits = array('sweet' => $sweet, 'sour' => 'lemon'); $arr = array('data-object.url' => 'http://yamamotohi.beautist.dev-php55.istyle.local/beautist/article/2004580', 'data-object.parent.class' => 'blog', 'data-object.parent.id' => '2004580', 'data-object.parent.owner.class' =>'uid', 'data-object.parent.owner.id' => '101607419', ); function test_print($item, $key) { echo "$key holds $item\n"; } array_walk_recursive($fruits, 'test_print'); array_walk_recursive($arr, function($item, $key){ echo "$key=\"$item\"\n"; }); $str = ''; array_walk_recursive($arr, function($item, $key){ $str .= print("$key=\"$item\"\n"); }); var_dump($str); ?>

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.0110.00718.80
8.3.50.0130.00522.11
8.3.40.0170.00019.09
8.3.30.0090.00618.79
8.3.20.0070.00021.73
8.3.10.0070.00321.89
8.3.00.0040.00422.09
8.2.180.0070.00717.00
8.2.170.0190.00422.96
8.2.160.0040.01121.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00019.77
8.2.120.0040.00426.35
8.2.110.0030.00722.20
8.2.100.0110.00020.36
8.2.90.0040.00417.84
8.2.80.0000.00719.34
8.2.70.0050.00318.05
8.2.60.0050.00317.93
8.2.50.0080.00418.10
8.2.40.0060.00320.41
8.2.30.0080.00019.40
8.2.20.0000.00718.14
8.2.10.0040.00418.19
8.2.00.0040.00417.71
8.1.280.0180.00425.92
8.1.270.0040.00423.88
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00422.24
8.1.230.0090.00319.04
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0080.00017.36
8.1.180.0000.00818.10
8.1.170.0040.00418.65
8.1.160.0020.00518.91
8.1.150.0040.00422.04
8.1.140.0080.00019.54
8.1.130.0000.00718.98
8.1.120.0000.00717.49
8.1.110.0040.00417.43
8.1.100.0040.00417.44
8.1.90.0040.00417.51
8.1.80.0080.00017.46
8.1.70.0000.00717.36
8.1.60.0000.00717.66
8.1.50.0050.00317.52
8.1.40.0030.00517.50
8.1.30.0000.00817.70
8.1.20.0000.00817.56
8.1.10.0060.00617.50
8.1.00.0080.00017.50
8.0.300.0040.00419.65
8.0.290.0040.00416.63
8.0.280.0040.00418.33
8.0.270.0030.00317.28
8.0.260.0070.00017.15
8.0.250.0030.00317.08
8.0.240.0000.00717.01
8.0.230.0030.00316.93
8.0.220.0030.00316.97
8.0.210.0070.00016.88
8.0.200.0050.00316.93
8.0.190.0050.00217.07
8.0.180.0070.00016.95
8.0.170.0060.00317.00
8.0.160.0000.00916.90
8.0.150.0000.00716.99
8.0.140.0050.00216.87
8.0.130.0030.00313.44
8.0.120.0040.00416.84
8.0.110.0000.00816.86
8.0.100.0040.00416.84
8.0.90.0050.00216.94
8.0.80.0090.00616.96
8.0.70.0040.00416.85
8.0.60.0000.00716.79
8.0.50.0000.00716.84
8.0.30.0110.00717.13
8.0.20.0110.00917.40
8.0.10.0070.00017.14
8.0.00.0100.00716.82
7.4.330.0000.00515.55
7.4.320.0000.00616.52
7.4.300.0030.00316.54
7.4.290.0030.00616.61
7.4.280.0050.00316.53
7.4.270.0050.00216.62
7.4.260.0030.00516.48
7.4.250.0000.00716.60
7.4.240.0040.00416.48
7.4.230.0000.00716.62
7.4.220.0090.00916.67
7.4.210.0150.00716.62
7.4.200.0040.00416.69
7.4.160.0070.01116.50
7.4.150.0160.00017.40
7.4.140.0070.01117.86
7.4.130.0090.00816.49
7.4.120.0120.00916.43
7.4.110.0100.00716.45
7.4.100.0100.01316.75
7.4.90.0000.01816.45
7.4.80.0120.00819.39
7.4.70.0140.00316.68
7.4.60.0060.01216.67
7.4.50.0140.00416.62
7.4.40.0070.01116.51
7.4.30.0140.00316.70
7.4.00.0030.01015.25
7.3.330.0000.00613.30
7.3.320.0050.00013.43
7.3.310.0030.00316.26
7.3.300.0030.00316.46
7.3.290.0040.01016.45
7.3.280.0060.01116.40
7.3.270.0140.00617.40
7.3.260.0100.01416.52
7.3.250.0070.01016.57
7.3.240.0160.00516.45
7.3.230.0080.01116.67
7.3.210.0070.01116.42
7.3.200.0100.00716.45
7.3.190.0090.00616.52
7.3.180.0080.01116.52
7.3.170.0130.01016.38
7.3.160.0090.00916.39
7.2.330.0060.01316.41
7.2.320.0120.00916.46
7.2.310.0070.01016.67
7.2.300.0040.01416.32
7.2.290.0080.00816.56
7.2.60.0090.00616.82
7.2.00.0040.00419.39
7.1.200.0030.00615.89
7.1.100.0100.00317.99
7.1.70.0040.00417.00
7.1.60.0250.00314.74
7.1.50.0040.00817.05
7.1.10.0230.05720.33
7.1.00.0130.07720.51
7.0.200.0070.01016.63
7.0.150.0170.06320.01
7.0.140.0270.05020.19
7.0.130.0130.06020.06
7.0.120.0200.05319.97
7.0.110.0230.05319.94
7.0.100.0100.06319.93
7.0.90.0230.05720.15
7.0.80.0170.06020.03
7.0.70.0270.06720.00
7.0.60.0300.07020.09
7.0.50.0170.06320.00
7.0.40.0230.05020.08
7.0.30.0130.06020.01
7.0.20.0270.04720.09
7.0.10.0200.05320.05
7.0.00.1430.05320.18

preferences:
55.79 ms | 401 KiB | 5 Q