3v4l.org

run code in 300+ PHP versions simultaneously
<?php function print_options($opts, $parents){ global $combos; global $md5s; if($opts){ foreach($opts as $level) { if($parents){ print_options($level[1], array($parents, $level[0])); } else { print_options($level[1], $level[0]);} } } else { if(!is_array($parents)) { $parents = array($parents); } $newarray = array(); //array_walk($parents, 'flatten_array', $newarray); array_walk_recursive($parents, function($a) use (&$newarray) { $newarray[] = $a; }); $combos[] = $newarray; $md5s[] = hashOptions($newarray); return $newarray; } }

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.0110.00418.18
8.3.60.0030.01016.25
8.3.50.0110.00917.32
8.3.40.0070.00718.60
8.3.30.0120.00318.64
8.3.20.0040.00418.64
8.3.10.0030.00620.17
8.3.00.0030.00719.26
8.2.180.0000.01516.63
8.2.170.0120.00322.96
8.2.160.0070.00719.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00318.77
8.2.110.0070.00319.35
8.2.100.0060.00617.59
8.2.90.0040.00418.70
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00817.90
8.2.50.0040.00418.10
8.2.40.0030.00618.16
8.2.30.0030.00617.92
8.2.20.0000.00817.45
8.2.10.0000.00817.61
8.2.00.0060.00317.51
8.1.280.0070.01125.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0030.00719.36
8.1.230.0080.00317.58
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.11
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0000.00918.86
8.1.160.0040.00418.78
8.1.150.0040.00418.43
8.1.140.0040.00417.24
8.1.130.0030.00317.70
8.1.120.0040.00417.38
8.1.110.0000.00717.33
8.1.100.0000.00817.17
8.1.90.0040.00417.26
8.1.80.0030.00317.35
8.1.70.0030.00317.29
8.1.60.0050.00617.37
8.1.50.0070.00017.34
8.1.40.0000.00717.43
8.1.30.0000.00717.58
8.1.20.0040.00417.51
8.1.10.0060.00317.27
8.1.00.0040.00417.21
8.0.300.0040.00419.21
8.0.290.0000.00816.58
8.0.280.0030.00318.38
8.0.270.0000.00717.18
8.0.260.0070.00016.65
8.0.250.0000.00716.80
8.0.240.0040.00416.82
8.0.230.0030.00316.86
8.0.220.0000.00616.68
8.0.210.0030.00316.75
8.0.200.0030.00316.85
8.0.190.0000.00716.81
8.0.180.0000.00716.79
8.0.170.0000.00816.73
8.0.160.0040.00416.79
8.0.150.0060.00316.70
8.0.140.0050.00316.61
8.0.130.0050.00013.22
8.0.120.0040.00416.68
8.0.110.0000.00716.62
8.0.100.0080.00016.56
8.0.90.0040.00416.63
8.0.80.0070.01416.80
8.0.70.0040.00416.80
8.0.60.0070.00016.82
8.0.50.0000.00716.80
8.0.30.0100.01217.03
8.0.20.0100.01116.83
8.0.10.0000.00716.77
8.0.00.0080.01216.83
7.4.330.0060.00012.86
7.4.320.0040.00416.46
7.4.300.0050.00316.48
7.4.290.0050.00216.41
7.4.280.0040.00416.46
7.4.270.0000.00716.51
7.4.260.0050.00013.21
7.4.250.0070.00316.29
7.4.240.0000.00716.37
7.4.230.0040.00416.48
7.4.220.0140.00416.52
7.4.210.0050.00916.46
7.4.200.0040.00416.47
7.4.190.0000.00716.61
7.4.160.0140.00716.09
7.4.150.0110.00716.34
7.4.140.0120.00516.44
7.4.130.0090.01116.45
7.4.120.0130.00516.49
7.4.110.0110.00916.29
7.4.100.0110.00516.43
7.4.90.0140.00916.36
7.4.80.0100.01419.39
7.4.70.0070.01016.48
7.4.60.0120.00316.48
7.4.50.0000.00916.34
7.4.40.0030.01016.38
7.4.30.0070.01016.60
7.4.00.0140.00014.98
7.3.330.0040.00413.12
7.3.320.0030.00313.04
7.3.310.0000.00716.20
7.3.300.0000.00716.09
7.3.290.0070.00716.17
7.3.280.0080.00716.16
7.3.270.0060.01016.35
7.3.260.0170.00316.39
7.3.250.0050.01316.10
7.3.240.0100.01016.20
7.3.230.0090.00916.41
7.3.210.0120.00616.27
7.3.200.0100.01016.18
7.3.190.0180.00416.23
7.3.180.0060.01016.22
7.3.170.0120.00316.31
7.3.160.0100.00716.32
7.3.120.0070.01014.32
7.2.330.0100.00716.61
7.2.320.0150.00316.56
7.2.310.0110.00716.39
7.2.300.0060.00916.39
7.2.290.0100.00716.53
7.2.00.0070.00719.29
7.1.100.0320.00017.21
7.1.70.0030.00916.63
7.1.60.0130.01019.40
7.1.50.0090.01616.49
7.1.00.0030.07322.30
7.0.200.0640.00414.62
7.0.140.0230.05722.08
7.0.120.0030.06722.03
7.0.60.0170.05320.02
7.0.50.0170.06717.87
7.0.40.0030.08320.13
7.0.30.0270.07720.23
7.0.20.0300.06020.23
7.0.10.0200.03720.08
7.0.00.0030.06320.07
5.6.280.0030.07321.12
5.6.210.0230.06320.52
5.6.200.0030.04318.27
5.6.190.0070.09020.68
5.6.180.0070.08320.75
5.6.170.0370.07720.45
5.6.160.0030.04720.46
5.6.150.0100.06718.12
5.6.140.0070.08318.27
5.6.130.0070.07018.21
5.6.120.0130.06721.13
5.6.110.0070.08321.15
5.6.100.0070.07020.98
5.6.90.0100.07320.96
5.6.80.0130.07320.37
5.6.70.0230.03320.37
5.5.350.0230.07720.50
5.5.340.0130.06717.97
5.5.330.0070.05320.27
5.5.320.0170.07020.26
5.5.310.0200.06320.27
5.5.300.0070.08317.98
5.5.290.0030.06018.04
5.5.280.0130.08020.84
5.5.270.0070.08720.79
5.5.260.0130.08320.65
5.5.250.0030.04020.71
5.5.240.0130.07020.22
5.4.450.0070.07319.20
5.4.440.0100.06719.18
5.4.430.0070.08019.30
5.4.420.0170.06319.46
5.4.410.0130.07019.20
5.4.400.0030.07718.86
5.4.390.0070.04719.08
5.4.380.0130.04018.85
5.4.370.0070.03718.93
5.4.360.0100.04018.85
5.4.350.0000.05719.10
5.4.340.0200.06718.87
5.4.320.0030.06719.14
5.4.310.0030.04719.16
5.4.300.0070.03718.95
5.4.290.0070.03719.11
5.4.280.0100.07319.09
5.4.270.0000.05019.24
5.4.260.0030.05018.85
5.4.250.0070.03718.84
5.4.240.0070.04718.97
5.4.230.0100.07319.07
5.4.220.0030.04719.14
5.4.210.0100.07019.11
5.4.200.0070.07019.19
5.4.190.0070.04719.14
5.4.180.0030.04719.23
5.4.170.0100.06019.19
5.4.160.0100.07719.13
5.4.150.0070.03718.84
5.4.140.0070.03316.35
5.4.130.0000.07716.38
5.4.120.0000.06716.40
5.4.110.0100.06016.72
5.4.100.0070.07016.50
5.4.90.0000.07316.46
5.4.80.0030.04016.49
5.4.70.0170.06316.55
5.4.60.0100.05316.43
5.4.50.0030.07316.27
5.4.40.0070.07016.31
5.4.30.0100.03016.40
5.4.20.0170.06316.25
5.4.10.0100.07016.30
5.4.00.0070.03315.86
5.3.290.0100.07014.71
5.3.280.0070.07714.64
5.3.270.0030.04014.63
5.3.260.0130.03314.76
5.3.250.0270.02314.76
5.3.240.0070.04714.50
5.3.230.0070.03714.65
5.3.220.0070.05314.58
5.3.210.0030.08014.61
5.3.200.0070.07714.58
5.3.190.0070.07014.57
5.3.180.0130.05314.59
5.3.170.0070.07314.63
5.3.160.0030.04314.45
5.3.150.0070.07714.49
5.3.140.0070.06714.57
5.3.130.0070.08014.62
5.3.120.0100.04314.63
5.3.110.0100.07314.62
5.3.100.0070.05014.07
5.3.90.0030.04013.91
5.3.80.0070.07714.17
5.3.70.0030.07314.07
5.3.60.0100.04014.03
5.3.50.0070.04314.00
5.3.40.0070.07314.03
5.3.30.0030.04014.05
5.3.20.0000.04013.67
5.3.10.0070.03313.69
5.3.00.0070.06313.64
5.2.170.0030.04011.32
5.2.160.0030.03711.04
5.2.150.0070.03311.14
5.2.140.0030.05711.15
5.2.130.0030.03011.18
5.2.120.0130.05011.25
5.2.110.0030.04311.27
5.2.100.0030.03711.13
5.2.90.0030.05710.99
5.2.80.0070.05711.11
5.2.70.0100.05711.07
5.2.60.0030.03711.10
5.2.50.0070.05711.07
5.2.40.0070.05710.91
5.2.30.0030.05010.97
5.2.20.0070.06310.93
5.2.10.0070.04711.03
5.2.00.0070.04710.68
5.1.60.0000.0439.97
5.1.50.0070.02310.01
5.1.40.0030.03010.02
5.1.30.0100.03710.34
5.1.20.0100.05010.50
5.1.10.0100.0509.98
5.1.00.0000.03310.14
5.0.50.0000.0278.57
5.0.40.0070.0438.46
5.0.30.0070.0478.23
5.0.20.0000.0508.27
5.0.10.0070.0438.33
5.0.00.0000.0708.23
4.4.90.0030.0178.23
4.4.80.0070.0338.23
4.4.70.0000.0408.23
4.4.60.0030.0378.23
4.4.50.0070.0308.23
4.4.40.0030.0408.23
4.4.30.0030.0378.23
4.4.20.0000.0408.23
4.4.10.0000.0408.23
4.4.00.0030.0578.23
4.3.110.0000.0338.23
4.3.100.0000.0238.23
4.3.90.0070.0338.23
4.3.80.0030.0508.23
4.3.70.0030.0338.23
4.3.60.0030.0338.23
4.3.50.0100.0178.23
4.3.40.0000.0308.23
4.3.30.0000.0208.23
4.3.20.0070.0338.23
4.3.10.0000.0378.23
4.3.00.0000.0278.23

preferences:
65.8 ms | 404 KiB | 6 Q