3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('hachi', 'dora', 'tiger', 'iris', 'gokito', 'chorizoornitorrinco1991'); function depth_picker($arr, $temp_string, &$collect) { if ($temp_string != "") $collect []= $temp_string; for ($i=0; $i<sizeof($arr);$i++) { $arrcopy = $arr; $elem = array_splice($arrcopy, $i, 1); // removes and returns the i'th element if (sizeof($arrcopy) > 0) { depth_picker($arrcopy, $temp_string ."" . $elem[0], $collect); } else { $collect []= $temp_string. "" . $elem[0]; } } } $collect = array(); depth_picker($array, "", $collect); print_r(json_encode($collect));

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.0110.00716.99
8.3.50.0110.00418.15
8.3.40.0110.00719.09
8.3.30.0050.00919.46
8.3.20.0000.00720.58
8.3.10.0050.00321.98
8.3.00.0070.00319.27
8.2.180.0120.00618.29
8.2.170.0110.00422.96
8.2.160.0000.01322.25
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00319.54
8.2.110.0040.00421.07
8.2.100.0060.00618.13
8.2.90.0050.00319.67
8.2.80.0000.00818.00
8.2.70.0040.00417.75
8.2.60.0050.00318.28
8.2.50.0000.00818.13
8.2.40.0050.00318.53
8.2.30.0100.00018.59
8.2.20.0040.00418.17
8.2.10.0060.00318.59
8.2.00.0000.00818.22
8.1.280.0100.00325.92
8.1.270.0000.01119.42
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.82
8.1.230.0080.00419.38
8.1.220.0040.00418.16
8.1.210.0000.00818.77
8.1.200.0030.00617.72
8.1.190.0060.00317.38
8.1.180.0000.00818.10
8.1.170.0000.00820.12
8.1.160.0030.00622.45
8.1.150.0000.00819.20
8.1.140.0040.00417.86
8.1.130.0000.00718.26
8.1.120.0050.00217.87
8.1.110.0080.00017.86
8.1.100.0040.00417.79
8.1.90.0000.00717.79
8.1.80.0000.00717.88
8.1.70.0050.00217.81
8.1.60.0040.00417.90
8.1.50.0030.00617.91
8.1.40.0030.00617.95
8.1.30.0030.00618.04
8.1.20.0080.00017.93
8.1.10.0040.00417.93
8.1.00.0050.00218.01
8.0.300.0040.00418.77
8.0.290.0000.01117.00
8.0.280.0040.00418.85
8.0.270.0040.00417.64
8.0.260.0040.00417.46
8.0.250.0050.00217.30
8.0.240.0070.00017.34
8.0.230.0040.00417.26
8.0.220.0000.00717.11
8.0.210.0000.00817.22
8.0.200.0030.00317.29
8.0.190.0000.00817.20
8.0.180.0070.00017.27
8.0.170.0030.00517.29
8.0.160.0000.00717.25
8.0.150.0080.00017.06
8.0.140.0070.00017.19
8.0.130.0030.00313.71
8.0.120.0040.00417.20
8.0.110.0000.00817.15
8.0.100.0040.00417.19
8.0.90.0040.00417.09
8.0.80.0030.01517.21
8.0.70.0030.00617.23
8.0.60.0000.00817.14
8.0.50.0020.00517.15
8.0.30.0160.00717.17
8.0.20.0130.00917.40
8.0.10.0080.00017.17
8.0.00.0090.01117.00
7.4.330.0000.00515.12
7.4.320.0030.00316.76
7.4.300.0040.00416.89
7.4.290.0060.00316.74
7.4.280.0080.00016.77
7.4.270.0070.00016.86
7.4.260.0090.00016.88
7.4.250.0040.00416.61
7.4.240.0060.00216.85
7.4.230.0040.00416.84
7.4.220.0130.00616.73
7.4.210.0100.00716.78
7.4.200.0040.00416.79
7.4.160.0070.01016.83
7.4.150.0300.02317.40
7.4.140.0080.01017.86
7.4.130.0090.00716.92
7.4.120.0100.00816.78
7.4.110.0120.00916.92
7.4.100.0090.01716.96
7.4.90.0120.00616.85
7.4.80.0160.00819.39
7.4.70.0100.00716.80
7.4.60.0120.00916.84
7.4.50.0000.00516.76
7.4.40.0070.01116.89
7.4.30.0170.00716.75
7.3.330.0030.00313.81
7.3.320.0090.00913.66
7.3.310.0040.00416.43
7.3.300.0030.00516.54
7.3.290.0050.00216.43
7.3.280.0060.01016.63
7.3.270.0100.00717.40
7.3.260.0090.00916.91
7.3.250.0120.00516.74
7.3.240.0110.00716.76
7.3.230.0160.00317.02
7.3.210.0150.00316.63
7.3.200.0140.00319.39
7.3.190.0100.01316.50
7.3.180.0060.01416.94
7.3.170.0110.01116.79
7.3.160.0170.00016.79
7.3.10.0040.01216.77
7.3.00.0040.01516.80
7.2.330.0110.00816.92
7.2.320.0120.00617.04
7.2.310.0150.01216.82
7.2.300.0090.01517.02
7.2.290.0100.01316.91
7.2.130.0060.01316.87
7.2.120.0070.01016.62
7.2.110.0090.00316.55
7.2.100.0040.01117.00
7.2.90.0070.00316.98
7.2.80.0060.00917.00
7.2.70.0080.00317.20
7.2.60.0000.01816.79
7.2.50.0050.00516.87
7.2.40.0070.01016.89
7.2.30.0070.00716.94
7.2.20.0030.01416.62
7.2.10.0030.00916.93
7.2.00.0040.01118.12
7.1.250.0030.01415.87
7.1.240.0000.01315.84
7.1.230.0160.00315.86
7.1.220.0030.00715.87
7.1.210.0040.01115.80
7.1.200.0070.01015.91
7.1.190.0100.00615.80
7.1.180.0030.01215.82
7.1.170.0090.00615.84
7.1.160.0110.00315.77
7.1.150.0070.01015.82
7.1.140.0030.01215.76
7.1.130.0030.01015.91
7.1.120.0030.01215.92
7.1.110.0110.00415.89
7.1.100.0050.00916.89
7.1.90.0080.00416.00
7.1.80.0090.00615.87
7.1.70.0050.00616.51
7.1.60.0080.01017.65
7.1.50.0060.01316.46
7.1.40.0080.00315.61
7.1.30.0070.01015.64
7.1.20.0120.00315.77
7.1.10.0040.00815.92
7.1.00.0020.04319.01
7.0.330.0030.01315.54
7.0.320.0000.01315.63
7.0.310.0070.00315.30
7.0.300.0070.01015.37
7.0.290.0080.00315.52
7.0.280.0090.00615.51
7.0.270.0100.00315.29
7.0.260.0070.01015.63
7.0.250.0090.00615.36
7.0.240.0070.00715.50
7.0.230.0070.01015.25
7.0.220.0120.00415.47
7.0.210.0070.00715.48
7.0.200.0040.00916.19
7.0.190.0100.00615.28
7.0.180.0070.01115.60
7.0.170.0060.00915.43
7.0.160.0040.01115.58
7.0.150.0120.00615.28
7.0.140.0030.03618.69
7.0.130.0100.00615.56
7.0.120.0060.01215.54
7.0.110.0090.00915.22
7.0.100.0000.01215.46
7.0.90.0280.04317.85
7.0.80.0370.03517.88
7.0.70.0210.02917.85
7.0.60.0230.03517.75
7.0.50.0280.02318.08
7.0.40.0020.05016.81
7.0.30.0080.04316.91
7.0.20.0090.04216.79
7.0.10.0020.04116.72
7.0.00.0050.02916.80
5.6.380.0000.02014.98
5.6.370.0040.01115.13
5.6.360.0120.00614.98
5.6.350.0000.02115.14
5.6.340.0000.01714.77
5.6.330.0070.01315.00
5.6.320.0000.01914.99
5.6.310.0030.01014.77
5.6.300.0040.01114.82
5.6.290.0030.00914.90
5.6.280.0060.04318.31
5.6.270.0040.01115.24
5.6.260.0070.01115.07
5.6.250.0070.01014.88
5.6.240.0100.04617.89
5.6.230.0070.04018.14
5.6.220.0130.03717.96
5.6.210.0050.03018.05
5.6.200.0080.04718.27
5.6.190.0060.05018.22
5.6.180.0100.04218.21
5.6.170.0080.04518.38
5.6.160.0080.04718.24
5.6.150.0030.05118.31
5.6.140.0080.03818.28
5.6.130.0200.03818.22
5.6.120.0070.04918.22
5.6.110.0070.05018.36
5.6.100.0120.04518.25
5.6.90.0080.04218.17
5.6.80.0120.04217.80
5.6.70.0040.03417.81
5.6.60.0050.05217.89
5.6.50.0050.05117.94
5.6.40.0100.04017.75
5.6.30.0060.04418.01
5.6.20.0100.04417.80
5.6.10.0120.02817.97
5.6.00.0080.03917.85
5.5.380.0050.04616.29
5.5.370.0130.04116.38
5.5.360.0080.04816.29
5.5.350.0100.04716.31
5.5.340.0050.04816.33
5.5.330.0050.03216.53
5.5.320.0100.03016.58
5.5.310.0040.05216.70
5.5.300.0030.04416.37
5.5.290.0050.05216.36
5.5.280.0040.04716.53
5.5.270.0030.04516.49
5.5.260.0020.03416.52
5.5.250.0070.04716.52
5.5.240.0070.04116.14
5.5.230.0080.04116.15
5.5.220.0030.04816.25
5.5.210.0080.04116.19
5.5.200.0100.03815.97
5.5.190.0080.04516.07
5.5.180.0070.04016.28
5.5.170.0040.01411.69
5.5.160.0110.02616.14
5.5.150.0050.02916.18
5.5.140.0090.04416.07
5.5.130.0150.03816.19
5.5.120.0050.03816.17
5.5.110.0020.05216.24
5.5.100.0080.04316.00
5.5.90.0030.04016.23
5.5.80.0040.03016.21
5.5.70.0050.04616.05
5.5.60.0030.04816.11
5.5.50.0050.02716.10
5.5.40.0060.02616.18
5.5.30.0050.04716.12
5.5.20.0100.03616.09
5.5.10.0070.04416.16
5.5.00.0070.02916.17
5.4.450.0080.03715.79
5.4.440.0080.04615.66
5.4.430.0000.05015.78
5.4.420.0070.04315.73
5.4.410.0050.03915.54
5.4.400.0020.04815.55
5.4.390.0100.04015.61
5.4.380.0030.04415.39
5.4.370.0090.04015.63
5.4.360.0050.04915.62
5.4.350.0080.04515.66
5.4.340.0000.03515.57
5.4.330.0000.01311.72
5.4.320.0080.04515.57
5.4.310.0120.04215.60
5.4.300.0020.04615.61
5.4.290.0080.04615.56
5.4.280.0050.03915.57
5.4.270.0050.04115.55
5.4.260.0030.04215.54
5.4.250.0060.04115.63
5.4.240.0070.04515.60
5.4.230.0030.04515.53
5.4.220.0070.02615.53
5.4.210.0080.04015.46
5.4.200.0070.04315.60
5.4.190.0100.03915.43
5.4.180.0070.04215.49
5.4.170.0020.03115.65
5.4.160.0030.04915.54
5.4.150.0020.04715.42
5.4.140.0030.03714.14
5.4.130.0110.03514.16
5.4.120.0070.03614.24
5.4.110.0120.03614.13
5.4.100.0080.04214.41
5.4.90.0030.03214.32
5.4.80.0050.04114.14
5.4.70.0050.02614.27
5.4.60.0030.04814.21
5.4.50.0000.04514.24
5.4.40.0090.04114.23
5.4.30.0030.04014.33
5.4.20.0060.02614.07
5.4.10.0020.03814.27
5.4.00.0050.03013.95

preferences:
42.08 ms | 400 KiB | 5 Q