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 .= vsprintf("$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.0120.00318.32
8.3.50.0110.00420.07
8.3.40.0040.01118.62
8.3.30.0070.00718.81
8.3.20.0040.00421.81
8.3.10.0060.00321.80
8.3.00.0040.00421.91
8.2.180.0060.00918.66
8.2.170.0120.00322.96
8.2.160.0070.00722.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00319.33
8.2.120.0000.00826.35
8.2.110.0060.00320.96
8.2.100.0110.00018.03
8.2.90.0060.00319.18
8.2.80.0080.00017.97
8.2.70.0050.00317.48
8.2.60.0000.00917.93
8.2.50.0090.00318.10
8.2.40.0070.00020.35
8.2.30.0040.00419.25
8.2.20.0000.00718.21
8.2.10.0070.00018.20
8.2.00.0000.00717.84
8.1.280.0070.01025.92
8.1.270.0000.00723.79
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00622.75
8.1.230.0110.00017.79
8.1.220.0000.00817.90
8.1.210.0000.00918.77
8.1.200.0060.00317.36
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0070.00018.87
8.1.150.0000.00722.04
8.1.140.0000.00819.60
8.1.130.0000.00718.93
8.1.120.0000.00817.53
8.1.110.0050.00317.49
8.1.100.0000.00717.48
8.1.90.0040.00417.50
8.1.80.0040.00417.50
8.1.70.0030.00317.47
8.1.60.0040.00417.68
8.1.50.0020.00517.59
8.1.40.0080.00017.53
8.1.30.0040.00417.59
8.1.20.0030.00517.75
8.1.10.0030.00617.55
8.1.00.0040.00417.53
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.59
8.0.270.0000.00717.29
8.0.260.0000.00717.34
8.0.250.0000.00717.02
8.0.240.0000.00716.98
8.0.230.0040.00417.01
8.0.220.0000.00716.99
8.0.210.0030.00317.00
8.0.200.0090.00017.07
8.0.190.0040.00417.03
8.0.180.0070.00017.04
8.0.170.0040.00416.94
8.0.160.0040.00417.00
8.0.150.0050.00216.96
8.0.140.0000.00716.91
8.0.130.0000.00813.45
8.0.120.0060.00316.98
8.0.110.0070.00017.04
8.0.100.0080.00016.93
8.0.90.0000.00816.98
8.0.80.0120.00916.98
8.0.70.0080.00016.85
8.0.60.0040.00416.84
8.0.50.0000.00817.02
8.0.30.0090.01017.27
8.0.20.0120.00917.40
8.0.10.0050.00217.16
8.0.00.0110.00717.00
7.4.330.0060.00015.55
7.4.320.0050.00316.45
7.4.300.0000.00616.53
7.4.290.0030.00616.52
7.4.280.0000.00816.37
7.4.270.0050.00316.45
7.4.260.0000.00716.50
7.4.250.0000.00816.56
7.4.240.0040.00416.45
7.4.230.0040.00416.45
7.4.220.0080.01216.59
7.4.210.0170.00716.51
7.4.200.0080.00016.71
7.4.160.0070.00816.51
7.4.150.0100.00717.40
7.4.140.0090.01217.86
7.4.130.0100.00816.47
7.4.120.0150.01016.59
7.4.110.0070.01016.62
7.4.100.0180.00316.66
7.4.90.0100.00716.38
7.4.80.0030.01819.39
7.4.70.0070.01116.52
7.4.60.0070.01016.54
7.4.50.0070.00716.41
7.4.40.0120.00616.42
7.4.30.0110.00816.59
7.4.00.0130.00314.98
7.3.330.0000.00513.45
7.3.320.0050.00013.37
7.3.310.0030.00316.46
7.3.300.0030.00316.43
7.3.290.0040.01116.41
7.3.280.0110.00816.42
7.3.270.0090.00917.40
7.3.260.0140.00616.44
7.3.250.0090.00816.61
7.3.240.0120.01216.54
7.3.230.0070.01016.58
7.3.210.0070.01116.42
7.3.200.0080.00816.49
7.3.190.0160.00616.69
7.3.180.0030.01716.35
7.3.170.0030.01716.52
7.3.160.0030.01316.42
7.2.330.0140.00316.56
7.2.320.0120.00616.46
7.2.310.0040.01516.73
7.2.300.0100.00916.37
7.2.290.0070.01016.56
7.2.110.0140.00316.33
7.2.60.0100.00316.82
7.2.00.0080.00819.48
7.1.200.0090.00615.70
7.1.100.0060.00318.22
7.1.70.0000.00717.10
7.1.60.0290.00414.77
7.1.50.0030.00716.64
7.1.10.0200.06320.45
7.1.00.1070.06320.57
7.0.200.0030.01016.73
7.0.150.0230.05720.02
7.0.140.0370.04020.09
7.0.130.0230.06720.00
7.0.120.0300.04720.02
7.0.110.0170.06319.96
7.0.100.0270.05020.08
7.0.90.0230.05720.08
7.0.80.0170.06020.09
7.0.70.0170.06020.02
7.0.60.0200.05720.05
7.0.50.0270.05320.10
7.0.40.0170.06020.20
7.0.30.0130.06320.09
7.0.20.0170.06019.99
7.0.10.0270.05020.08
7.0.00.0130.06320.08

preferences:
58.22 ms | 400 KiB | 5 Q