3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i_have_this = [ "Base/child" => [ [ "filename" => "child-1", "last_modified" => "29/01/2020" ], [ "filename" => "child-2", "last_modified" => "29/01/2020" ], [ "filename" => "child-3", "last_modified" => "29/01/2020" ] ], "Base/child/grandChild1" => [ [ "filename" => "grandChild1-1", "last_modified" => "29/01/2020" ] ], "Base/child/grandChild2" => [ [ "filename" => "grandChild2-1", "last_modified" => "29/01/2020" ], [ "filename" => "grandChild2-2", "last_modified" => "29/01/2020" ], [ "filename" => "grandChild2-3", "last_modified" => "29/01/2020" ], [ "filename" => "grandChild2-4", "last_modified" => "29/01/2020" ], [ "filename" => "grandChild2-5", "last_modified" => "29/01/2020" ] ] ]; $want_this = []; foreach($i_have_this as $path => $value) { $temp = &$want_this; foreach (explode('/', $path) as $key) { $temp = &$temp[$key]; } $temp = $value; } print_r($want_this);

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.70.0040.01416.88
8.3.60.0070.00718.42
8.3.50.0070.00716.30
8.3.40.0090.00918.56
8.3.30.0120.00318.47
8.3.20.0040.00420.73
8.3.10.0040.00421.94
8.3.00.0050.00221.91
8.2.190.0090.00618.17
8.2.180.0190.00318.16
8.2.170.0120.00322.96
8.2.160.0070.01119.31
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00419.66
8.2.110.0030.00621.00
8.2.100.0080.00418.03
8.2.90.0090.00017.81
8.2.80.0030.00619.16
8.2.70.0030.00618.04
8.2.60.0000.00917.91
8.2.50.0050.00318.16
8.2.40.0040.00419.82
8.2.30.0000.00719.31
8.2.20.0040.00418.01
8.2.10.0040.00419.36
8.2.00.0040.00419.41
8.1.280.0060.00925.92
8.1.270.0000.00920.45
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00422.01
8.1.230.0100.00020.95
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0050.00317.13
8.1.180.0050.00318.10
8.1.170.0000.00817.62
8.1.160.0000.00718.92
8.1.150.0000.00818.80
8.1.140.0040.00420.63
8.1.130.0050.00320.31
8.1.120.0040.00417.53
8.1.110.0000.00717.49
8.1.100.0040.00417.46
8.1.90.0000.00717.49
8.1.80.0040.00417.36
8.1.70.0000.00817.40
8.1.60.0040.00417.63
8.1.50.0060.00317.42
8.1.40.0000.00917.54
8.1.30.0040.00417.60
8.1.20.0030.00617.55
8.1.10.0050.00217.35
8.1.00.0030.00617.29
8.0.300.0070.00019.95
8.0.290.0060.00316.75
8.0.280.0090.00018.38
8.0.270.0000.00717.92
8.0.260.0030.00320.06
8.0.250.0070.00016.89
8.0.240.0040.00416.91
8.0.230.0030.00316.93
8.0.220.0000.00716.78
8.0.210.0030.00316.91
8.0.200.0040.00416.98
8.0.190.0050.00216.93
8.0.180.0060.00316.98
8.0.170.0030.00516.91
8.0.160.0000.00716.88
8.0.150.0040.00416.92
8.0.140.0030.00416.73
8.0.130.0000.00613.29
8.0.120.0080.00016.77
8.0.110.0000.00816.78
8.0.100.0040.00416.71
8.0.90.0030.00616.77
8.0.80.0120.00316.91
8.0.70.0000.00816.92
8.0.60.0080.00016.95
8.0.50.0040.00416.89
8.0.30.0060.00916.96
8.0.20.0070.01117.22
8.0.10.0000.00716.98
8.0.00.0050.01516.49
7.4.330.0020.00216.79
7.4.320.0000.00716.41
7.4.300.0100.00016.45
7.4.290.0030.00316.51
7.4.280.0030.00716.60
7.4.270.0060.00316.61
7.4.260.0030.00313.29
7.4.250.0030.00316.61
7.4.240.0040.00316.60
7.4.230.0030.00616.30
7.4.220.0020.00516.58
7.4.210.0080.00916.57
7.4.200.0040.00416.60
7.4.130.0150.00416.40
7.4.120.0150.00616.50
7.4.110.0030.01416.68
7.4.100.0170.00716.44
7.4.90.0040.01216.43
7.4.80.0120.00919.39
7.4.70.0120.00616.40
7.4.60.0060.00916.51
7.4.50.0090.00616.57
7.4.40.0160.00016.34
7.4.20.0140.00616.40
7.4.10.0130.00816.31
7.4.00.0070.01216.41
7.3.330.0000.00816.21
7.3.320.0030.00313.07
7.3.310.0030.00316.47
7.3.300.0000.00716.31
7.3.290.0080.00716.36
7.3.280.0000.01416.36
7.3.260.0130.01016.48
7.3.240.0080.00816.45
7.3.230.0070.01016.29
7.3.210.0140.00916.41
7.3.200.0080.00816.56
7.3.190.0030.01316.59
7.3.180.0100.01016.60
7.3.170.0140.00716.50
7.3.160.0120.00316.38
7.3.140.0130.01116.37
7.3.130.0120.00716.41
7.3.120.0100.01016.38
7.3.110.0080.01316.42
7.3.100.0090.01116.32
7.3.90.0080.01116.34
7.3.80.0090.01116.37
7.3.70.0070.01116.36
7.3.60.0090.01016.35
7.3.50.0110.00716.36
7.3.40.0090.00916.33
7.3.30.0090.01116.35
7.3.20.0100.01116.39
7.3.10.0130.01016.39
7.3.00.0090.01116.36
7.2.330.0130.00716.55
7.2.320.0100.00616.44
7.2.310.0060.01016.78
7.2.300.0150.00716.45
7.2.290.0030.01516.60
7.2.270.0110.01016.54
7.2.260.0100.00916.57
7.2.250.0100.01016.64
7.2.240.0120.00916.66
7.2.230.0090.01316.67
7.2.220.0110.00816.59
7.2.210.0100.01116.50
7.2.200.0100.01016.59
7.2.190.0120.00916.54
7.2.180.0090.00816.61
7.2.170.0110.00816.56
7.2.160.0110.00916.58
7.2.150.0150.00916.60
7.2.140.0090.01116.63
7.2.130.0130.00716.61
7.2.120.0100.00816.61
7.2.110.0110.00616.64
7.2.100.0140.00816.63
7.2.90.0100.01016.62
7.2.80.0100.01016.61
7.2.70.0110.00916.56
7.2.60.0130.00916.54
7.2.50.0140.00816.54
7.2.40.0140.00916.68
7.2.30.0070.01116.66
7.2.20.0090.01116.63
7.2.10.0100.01016.61
7.2.00.0110.01016.61

preferences:
22.29 ms | 401 KiB | 5 Q