3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'max_size_video' => 50000, 'max_size_photo' => 8000, 'token_expire' => 100, 'dns' => 'mydns.fr', ]; $result = []; foreach ($array as $path => $value) { $ref = &$result; foreach (explode('_', $path) as $key) { $ref = &$ref[$key]; } $ref = $value; } var_export($result);

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.0080.00816.58
8.3.60.0040.01216.50
8.3.50.0110.00716.48
8.3.40.0140.00718.90
8.3.30.0000.01518.65
8.3.20.0070.00024.18
8.3.10.0050.00224.66
8.3.00.0030.00626.16
8.2.190.0170.00316.75
8.2.180.0140.00025.92
8.2.170.0130.00619.01
8.2.160.0100.00722.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0090.00026.35
8.2.110.0030.00720.53
8.2.100.0110.00017.91
8.2.90.0000.00817.75
8.2.80.0050.00318.96
8.2.70.0050.00318.05
8.2.60.0000.00818.28
8.2.50.0040.00418.10
8.2.40.0090.00019.33
8.2.30.0040.00419.20
8.2.20.0040.00418.19
8.2.10.0000.00719.29
8.2.00.0070.00019.23
8.1.280.0090.00625.92
8.1.270.0080.00023.99
8.1.260.0070.00028.09
8.1.250.0030.00628.09
8.1.240.0030.00623.91
8.1.230.0060.00622.68
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00917.22
8.1.190.0090.00017.36
8.1.180.0060.00318.10
8.1.170.0040.00418.61
8.1.160.0060.00318.96
8.1.150.0000.00718.85
8.1.140.0030.00518.95
8.1.130.0000.00720.15
8.1.120.0040.00417.46
8.1.110.0040.00417.50
8.1.100.0000.00817.36
8.1.90.0000.00717.42
8.1.80.0000.00717.50
8.1.70.0040.00417.44
8.1.60.0070.00017.48
8.1.50.0060.00317.52
8.1.40.0060.00617.45
8.1.30.0050.00517.68
8.1.20.0040.00417.57
8.1.10.0050.00317.50
8.1.00.0040.00417.43
8.0.300.0050.00318.77
8.0.290.0030.00516.63
8.0.280.0000.00818.41
8.0.270.0070.00016.73
8.0.260.0000.00718.46
8.0.250.0050.00316.85
8.0.240.0030.00316.83
8.0.230.0040.00316.95
8.0.220.0070.00016.95
8.0.210.0030.00316.92
8.0.200.0030.00616.93
8.0.190.0040.00416.96
8.0.180.0040.00416.91
8.0.170.0040.00416.93
8.0.160.0040.00416.88
8.0.150.0040.00416.88
8.0.140.0040.00416.86
8.0.130.0000.00713.34
8.0.120.0050.00316.91
8.0.110.0000.00716.70
8.0.100.0030.00316.75
8.0.90.0000.00716.77
8.0.80.0060.00916.93
8.0.70.0040.00416.96
8.0.60.0000.00817.00
8.0.50.0040.00416.74
8.0.30.0080.00816.88
8.0.20.0160.00317.04
8.0.10.0030.01416.98
8.0.00.0080.01117.11
7.4.330.0000.00515.55
7.4.320.0070.00016.56
7.4.300.0000.00616.58
7.4.290.0040.00416.37
7.4.280.0060.00316.52
7.4.270.0030.00316.61
7.4.260.0050.00013.31
7.4.250.0050.00216.62
7.4.240.0000.00816.52
7.4.230.0000.00716.59
7.4.220.0030.00316.62
7.4.210.0090.00716.63
7.4.200.0000.00716.59
7.4.140.0110.00516.41
7.4.130.0070.01016.39
7.4.120.0130.00316.49
7.4.110.0100.01016.40
7.4.100.0090.00916.49
7.4.90.0060.00717.18
7.4.80.0140.00716.55
7.4.70.0160.00316.50
7.4.60.0090.01516.75
7.4.50.0060.01216.53
7.4.40.0120.00716.20
7.4.30.0040.01216.55
7.4.20.0070.01416.38
7.4.10.0100.00616.71
7.4.00.0050.01116.48
7.3.330.0030.00316.38
7.3.320.0000.00513.32
7.3.310.0040.00416.11
7.3.300.0060.00016.32
7.3.290.0120.00416.36
7.3.260.0090.00916.55
7.3.250.0040.01216.14
7.3.240.0120.00616.33
7.3.230.0050.01416.50
7.3.220.0030.01416.28
7.3.210.0120.00616.34
7.3.200.0110.00716.41
7.3.190.0100.00916.36
7.3.180.0070.01016.43
7.3.170.0070.01016.54
7.3.160.0040.01516.67
7.3.150.0100.01116.42
7.3.140.0110.00516.38
7.3.130.0080.00816.36
7.3.120.0100.00716.50
7.3.110.0100.00616.39
7.3.100.0040.01216.36
7.3.90.0160.00316.35
7.3.80.0140.01016.52
7.3.70.0130.01016.38
7.3.60.0090.01216.38
7.3.50.0060.01416.29
7.3.40.0030.01416.27
7.3.30.0070.01016.30
7.3.20.0120.00616.41
7.3.10.0110.00816.32
7.3.00.0080.00816.37

preferences:
21.59 ms | 401 KiB | 5 Q