3v4l.org

run code in 300+ PHP versions simultaneously
<?php $files=array("home--lists--country--create_a_country.jpg","home--lists--country--list_countries.jpg","profile--edit--account.jpg","profile--my_account.jpg","shop--orders--list_orders.jpg"); $master_array=array(); foreach($files as $file) { $file=explode("--",$file); $cache=end($file); while($level=prev($file)) { $cache=array($level=>$cache); } $master_array=array_merge_recursive($master_array,$cache); } print_r($master_array);

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.130.0090.01118.80
8.4.120.0110.00824.16
8.4.110.0060.00318.68
8.4.100.0110.01118.70
8.4.90.0130.00820.68
8.4.80.0050.00318.53
8.4.70.0130.00617.57
8.4.60.0120.00918.48
8.4.50.0040.00420.52
8.4.40.0040.00419.43
8.4.30.0090.00617.41
8.4.20.0100.01017.56
8.4.10.0030.00617.56
8.3.260.0100.00916.69
8.3.250.0070.00118.94
8.3.240.0090.01017.44
8.3.230.0060.00316.50
8.3.220.0120.00719.16
8.3.210.0100.01116.64
8.3.200.0030.00516.34
8.3.190.0100.00917.18
8.3.180.0100.01016.79
8.3.170.0070.00716.62
8.3.160.0180.00016.57
8.3.150.0040.00416.95
8.3.140.0070.01120.86
8.3.130.0030.00618.28
8.3.120.0130.00621.02
8.3.110.0040.01216.53
8.3.100.0060.00316.60
8.3.90.0040.00426.77
8.3.80.0100.00018.43
8.3.70.0030.01316.63
8.3.60.0140.00418.14
8.3.50.0200.00821.27
8.3.40.0000.01418.82
8.3.30.0130.00320.17
8.3.20.0040.00420.33
8.3.10.0040.00421.95
8.3.00.0070.00022.39
8.2.290.0090.00722.08
8.2.280.0110.00721.91
8.2.270.0030.00616.66
8.2.260.0070.01118.66
8.2.250.0100.00018.23
8.2.240.0080.01119.13
8.2.230.0060.00320.94
8.2.220.0040.00724.06
8.2.210.0090.00026.77
8.2.200.0040.00416.50
8.2.190.0110.00416.63
8.2.180.0090.00618.54
8.2.170.0150.00418.95
8.2.160.0160.00322.96
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00020.80
8.2.110.0060.00319.32
8.2.100.0080.00420.35
8.2.90.0050.00319.76
8.2.80.0060.00317.97
8.2.70.0040.00417.93
8.2.60.0040.00418.16
8.2.50.0060.00318.10
8.2.40.0060.00318.09
8.2.30.0000.00719.30
8.2.20.0080.00017.75
8.2.10.0080.00017.66
8.2.00.0080.00017.79
8.1.330.0110.00722.13
8.1.320.0110.01015.93
8.1.310.0100.01316.84
8.1.300.0000.00818.48
8.1.290.0040.00730.84
8.1.280.0080.00825.92
8.1.270.0070.00022.25
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00020.76
8.1.230.0060.00620.63
8.1.220.0040.00417.75
8.1.210.0040.00419.10
8.1.200.0060.00317.36
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0040.00418.43
8.1.160.0000.00718.93
8.1.150.0030.00518.62
8.1.140.0000.00817.35
8.1.130.0030.00317.80
8.1.120.0070.00017.42
8.1.110.0040.00417.50
8.1.100.0000.00717.40
8.1.90.0040.00417.34
8.1.80.0070.00017.45
8.1.70.0030.00617.46
8.1.60.0080.00017.59
8.1.50.0040.00417.51
8.1.40.0040.00417.36
8.1.30.0040.00417.56
8.1.20.0070.00017.64
8.1.10.0040.00417.48
8.1.00.0000.00717.41
8.0.300.0040.00421.45
8.0.290.0020.00516.75
8.0.280.0030.00318.44
8.0.270.0040.00417.25
8.0.260.0000.00716.74
8.0.250.0000.00716.83
8.0.240.0040.00416.96
8.0.230.0000.00716.82
8.0.220.0000.00716.93
8.0.210.0000.00716.86
8.0.200.0030.00316.99
8.0.190.0000.00916.93
8.0.180.0070.00016.80
8.0.170.0040.00416.80
8.0.160.0000.00816.84
8.0.150.0040.00416.84
8.0.140.0070.00016.67
8.0.130.0060.00013.31
8.0.120.0040.00416.89
8.0.110.0070.00016.84
8.0.100.0040.00416.87
8.0.90.0080.00016.84
8.0.80.0060.00916.90
8.0.70.0030.00516.73
8.0.60.0000.00716.87
8.0.50.0000.00816.71
8.0.30.0050.01517.07
8.0.20.0140.00417.40
8.0.10.0000.00717.00
8.0.00.0150.00616.90
7.4.330.0000.00415.09
7.4.320.0000.00716.58
7.4.300.0000.00616.41
7.4.290.0030.00316.58
7.4.280.0070.00016.54
7.4.270.0030.00316.37
7.4.260.0000.00713.34
7.4.250.0040.00416.55
7.4.240.0020.00516.57
7.4.230.0070.00016.63
7.4.220.0110.00816.54
7.4.210.0080.00616.63
7.4.200.0000.00716.57
7.4.190.0020.00516.61
7.4.160.0130.00316.65
7.4.150.0140.00317.40
7.4.140.0120.00717.86
7.4.130.0090.01116.42
7.4.120.0120.00516.45
7.4.110.0090.01516.34
7.4.100.0090.00816.55
7.4.90.0140.00316.55
7.4.80.0120.01219.39
7.4.70.0130.00316.43
7.4.60.0070.01516.47
7.4.50.0030.00616.14
7.4.40.0090.00622.77
7.4.30.0100.00716.32
7.4.10.0030.01414.77
7.4.00.0050.01214.86
7.3.330.0030.00313.16
7.3.320.0000.00513.06
7.3.310.0030.00416.46
7.3.300.0000.00716.42
7.3.290.0090.01116.34
7.3.280.0120.00316.32
7.3.270.0030.01317.40
7.3.260.0120.01216.27
7.3.250.0140.01316.38
7.3.240.0030.01416.29
7.3.230.0100.00716.39
7.3.210.0060.00916.32
7.3.200.0100.01119.39
7.3.190.0030.01816.39
7.3.180.0070.01016.58
7.3.170.0070.01016.31
7.3.160.0160.00716.36
7.3.130.0060.01215.01
7.3.120.0060.01014.76
7.3.110.0090.00714.86
7.3.100.0090.00814.75
7.3.90.0020.01214.95
7.3.80.0090.00614.79
7.3.70.0050.00914.86
7.3.60.0030.00814.68
7.3.50.0100.00514.66
7.3.40.0030.00814.90
7.3.30.0080.00614.76
7.3.20.0020.01216.58
7.3.10.0070.00616.61
7.3.00.0050.01116.73
7.2.330.0060.01416.77
7.2.320.0040.01216.75
7.2.310.0070.01116.66
7.2.300.0150.00616.70
7.2.290.0140.00316.58
7.2.260.0030.01415.00
7.2.250.0060.01115.15
7.2.240.0050.01214.91
7.2.230.0080.00815.10
7.2.220.0070.00815.18
7.2.210.0050.00915.13
7.2.200.0050.00714.80
7.2.190.0050.00914.91
7.2.180.0090.00515.02
7.2.170.0100.00315.03
7.2.160.0020.01115.05
7.2.150.0090.00416.91
7.2.140.0030.01016.82
7.2.130.0030.01016.87
7.2.120.0030.00816.98
7.2.110.0070.00616.95
7.2.100.0050.01017.03
7.2.90.0080.00516.80
7.2.80.0070.00816.94
7.2.70.0060.01117.04
7.2.60.0010.01416.83
7.2.50.0070.01016.95
7.2.40.0030.00816.86
7.2.30.0070.01017.03
7.2.20.0050.00817.01
7.2.10.0070.00516.90
7.2.00.0070.00717.78
7.1.330.0110.00415.92
7.1.320.0030.01015.70
7.1.310.0020.01215.87
7.1.300.0040.00415.73
7.1.290.0030.01215.77
7.1.280.0090.00415.77
7.1.270.0050.00915.79
7.1.260.0060.00515.90
7.1.250.0070.00515.79
7.1.240.0070.00515.66
7.1.230.0070.00615.76
7.1.220.0040.00915.88
7.1.210.0030.01015.74
7.1.200.0090.00315.71
7.1.190.0090.00615.78
7.1.180.0050.00815.75
7.1.170.0110.00315.73
7.1.160.0060.00715.61
7.1.150.0030.00815.72
7.1.140.0050.00615.85
7.1.130.0050.00615.81
7.1.120.0060.00715.72
7.1.110.0110.00515.86
7.1.100.0060.01016.38
7.1.90.0050.00715.73
7.1.80.0050.00915.82
7.1.70.0060.00716.32
7.1.60.0060.01016.84
7.1.50.0100.00922.14
7.1.40.0020.01415.86
7.1.30.0050.01015.78
7.1.20.0030.00815.83
7.1.10.0030.01215.69
7.1.00.0060.02418.05
7.0.330.0130.00115.33
7.0.320.0080.00515.29
7.0.310.0070.00715.50
7.0.300.0090.00515.41
7.0.290.0020.00915.25
7.0.280.0080.00415.36
7.0.270.0050.00815.30
7.0.260.0060.00615.27
7.0.250.0020.01115.53
7.0.240.0060.00815.35
7.0.230.0110.00515.28
7.0.220.0050.00815.51
7.0.210.0030.01115.52
7.0.200.0010.01115.90
7.0.190.0080.00815.25
7.0.180.0080.00615.34
7.0.170.0050.01015.41
7.0.160.0050.00715.48
7.0.150.0080.00615.54
7.0.140.0060.03017.56
7.0.130.0000.01315.48
7.0.120.0050.00715.47
7.0.110.0020.01015.37
7.0.100.0030.01015.48
7.0.90.0030.01015.56
7.0.80.0080.01015.52
7.0.70.1250.01616.92
7.0.60.0040.02917.56
7.0.50.0080.02417.68
7.0.40.0020.03115.56
7.0.30.0040.02415.73
7.0.20.0080.02915.69
7.0.10.0030.03415.63
7.0.00.0060.03015.71
5.6.400.0050.00814.34
5.6.390.0020.01114.39
5.6.380.0050.00814.29
5.6.370.0070.01214.54
5.6.360.0050.00814.31
5.6.350.0030.00814.41
5.6.340.0080.00614.47
5.6.330.0050.00614.23
5.6.320.0090.00814.30
5.6.310.0050.01014.39
5.6.300.0050.00914.62
5.6.290.0050.00714.26
5.6.280.0030.03016.60
5.6.270.0070.00614.45
5.6.260.0100.00514.25
5.6.250.0070.00914.35
5.6.240.0070.01214.20
5.6.230.0090.00714.38
5.6.220.0060.00814.35
5.6.210.0060.02116.42
5.6.200.0100.02816.56
5.6.190.0090.02816.56
5.6.180.0030.03016.52
5.6.170.0040.02616.50
5.6.160.0080.02916.57
5.6.150.0110.02416.57
5.6.140.0030.02616.44
5.6.130.0080.03016.57
5.6.120.0050.03516.62
5.6.110.0090.03116.48
5.6.100.0090.02916.42
5.6.90.0060.03016.48
5.6.80.0050.03416.34
5.6.70.0070.03116.23
5.6.60.0030.03416.27
5.6.50.0100.03016.24
5.6.40.0090.02716.37
5.6.30.0080.02816.22
5.6.20.0080.02516.11
5.6.10.0060.02716.29
5.6.00.0040.02616.21
5.5.380.0070.00914.12
5.5.370.0080.00814.07
5.5.360.0050.00714.37
5.5.350.0070.02916.49
5.5.340.0070.03116.38
5.5.330.0030.03216.46
5.5.320.0040.02116.36
5.5.310.0090.02816.54
5.5.300.0060.02616.43
5.5.290.0100.02916.48
5.5.280.0060.03316.33
5.5.270.0050.03016.50
5.5.260.0050.03516.38
5.5.250.0050.02616.12
5.5.240.0040.03116.18
5.5.230.0050.02716.27
5.5.220.0060.02716.16
5.5.210.0050.03216.28
5.5.200.0100.03016.21
5.5.190.0070.01716.05
5.5.180.0060.02716.03
5.5.170.0050.00914.24
5.5.160.0040.02316.22
5.5.150.0070.02716.09
5.5.140.0050.03016.33
5.5.130.0060.02616.18
5.5.120.0050.02916.26
5.5.110.0090.02616.31
5.5.100.0060.02616.21
5.5.90.0060.03116.25
5.5.80.0040.02816.11
5.5.70.0010.02516.13
5.5.60.0040.03016.08
5.5.50.0070.02516.27
5.5.40.0020.03316.15
5.5.30.0040.02316.19
5.5.20.0090.02116.21
5.5.10.0060.02816.05
5.5.00.0030.03215.95
5.4.450.0020.03213.94
5.4.440.0030.02214.00
5.4.430.0020.03313.99
5.4.420.0060.02713.88
5.4.410.0080.02613.81
5.4.400.0040.02213.90
5.4.390.0030.02913.82
5.4.380.0070.02913.86
5.4.370.0050.03013.79
5.4.360.0100.02913.87
5.4.350.0010.02613.83
5.4.340.0040.02713.84
5.4.330.0040.00711.33
5.4.320.0100.02613.98
5.4.310.0040.03013.90
5.4.300.0020.02913.82
5.4.290.0050.02713.74
5.4.280.0010.02913.73
5.4.270.0040.02713.77
5.4.260.0040.02913.70
5.4.250.0040.03013.84
5.4.240.0070.02713.90
5.4.230.0080.02513.83
5.4.220.0070.02713.81
5.4.210.0030.03113.86
5.4.200.0060.02913.90
5.4.190.0020.02513.78
5.4.180.0060.02613.88
5.4.170.0060.02413.80
5.4.160.0080.02513.76
5.4.150.0020.03113.74
5.4.140.0050.02713.01
5.4.130.0040.02912.83
5.4.120.0080.02712.95
5.4.110.0030.02712.93
5.4.100.0030.02812.96
5.4.90.0020.03212.79
5.4.80.0030.03113.00
5.4.70.0050.02813.02
5.4.60.0010.03113.00
5.4.50.0050.02912.92
5.4.40.0050.02712.91
5.4.30.0060.02712.88
5.4.20.0030.02512.90
5.4.10.0040.02512.84
5.4.00.0070.02712.73
5.3.290.0060.02912.29
5.3.280.0010.03212.26
5.3.270.0060.02912.21
5.3.260.0010.03412.28
5.3.250.0070.02712.19
5.3.240.0070.02412.15
5.3.230.0020.03112.25
5.3.220.0050.02812.10
5.3.210.0030.01812.13
5.3.200.0020.03012.13
5.3.190.0070.02112.17
5.3.180.0050.02812.13
5.3.170.0060.02512.16
5.3.160.0050.02312.17
5.3.150.0040.02912.27
5.3.140.0040.02912.23
5.3.130.0040.02912.17
5.3.120.0040.02812.27
5.3.110.0000.03312.21
5.3.100.0070.02712.00
5.3.90.0020.03212.03
5.3.80.0040.03012.00
5.3.70.0030.02612.01
5.3.60.0060.03011.98
5.3.50.0030.02911.98
5.3.40.0050.02811.96
5.3.30.0050.02711.96
5.3.20.0020.02911.86
5.3.10.0020.02911.88
5.3.00.0020.02711.87
5.2.170.0030.06011.24
5.2.160.0070.06011.12
5.2.150.0000.05311.12
5.2.140.0070.04711.03
5.2.130.0000.05711.15
5.2.120.0000.05711.14
5.2.110.0030.05311.15
5.2.100.0000.05711.20
5.2.90.0030.05711.00
5.2.80.0030.06310.91
5.2.70.0030.05010.95
5.2.60.0100.05010.89
5.2.50.0030.06310.87
5.2.40.0030.06011.09
5.2.30.0000.05311.02
5.2.20.0000.06311.06
5.2.10.0100.05710.94
5.2.00.0030.06310.57
5.1.60.0070.05010.37
5.1.50.0030.05010.37
5.1.40.0000.05010.37
5.1.30.0000.05310.37
5.1.20.0000.05010.37
5.1.10.0070.05010.37
5.1.00.0030.05310.37
5.0.50.0030.04710.37
5.0.40.0070.04010.37
5.0.30.0030.06310.37
5.0.20.0030.03710.37
5.0.10.0030.01710.37
5.0.00.0070.04310.37
4.4.90.0030.03010.37
4.4.80.0000.03010.37
4.4.70.0000.04010.37
4.4.60.0000.03710.37
4.4.50.0030.03310.37
4.4.40.0030.05010.37
4.4.30.0030.03710.37
4.4.20.0030.03010.37
4.4.10.0000.03710.37
4.4.00.0000.05010.37
4.3.110.0030.03010.37
4.3.100.0030.03010.37
4.3.90.0000.01710.37
4.3.80.0030.04710.37
4.3.70.0070.02710.37
4.3.60.0000.03710.37
4.3.50.0000.03710.37
4.3.40.0000.05010.37
4.3.30.0000.03710.37
4.3.20.0000.03710.37
4.3.10.0000.03710.37
4.3.00.0000.03010.37

preferences:
32.25 ms | 403 KiB | 5 Q