3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('Alpha', 'Beta', 'Gamma', 'Sigma'); 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($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.0100.00716.75
8.3.50.0080.01022.07
8.3.40.0120.00318.92
8.3.30.0070.00719.02
8.3.20.0000.00720.34
8.3.10.0080.00021.89
8.3.00.0050.00519.08
8.2.180.0100.00718.29
8.2.170.0040.01122.96
8.2.160.0090.00620.55
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0060.00326.16
8.2.120.0040.00419.64
8.2.110.0060.00320.89
8.2.100.0080.00417.75
8.2.90.0000.00919.20
8.2.80.0080.00017.97
8.2.70.0070.00317.25
8.2.60.0000.00818.05
8.2.50.0060.00318.07
8.2.40.0080.00018.32
8.2.30.0100.00018.16
8.2.20.0080.00017.68
8.2.10.0040.00418.20
8.2.00.0050.00317.64
8.1.280.0110.00425.92
8.1.270.0070.00318.89
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.97
8.1.230.0080.00319.21
8.1.220.0050.00317.79
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0030.00520.31
8.1.160.0030.00622.03
8.1.150.0040.00418.82
8.1.140.0040.00417.48
8.1.130.0040.00417.76
8.1.120.0000.00717.54
8.1.110.0040.00417.43
8.1.100.0000.00717.50
8.1.90.0000.00717.45
8.1.80.0000.00817.37
8.1.70.0030.00317.36
8.1.60.0060.00317.53
8.1.50.0040.00417.59
8.1.40.0080.00017.53
8.1.30.0000.00817.63
8.1.20.0000.00817.60
8.1.10.0040.00417.51
8.1.00.0030.00517.55
8.0.300.0080.00018.77
8.0.290.0050.00316.63
8.0.280.0030.00318.48
8.0.270.0000.00717.15
8.0.260.0030.00317.28
8.0.250.0060.00316.91
8.0.240.0000.00717.02
8.0.230.0070.00016.97
8.0.220.0000.00816.82
8.0.210.0040.00416.80
8.0.200.0060.00016.94
8.0.190.0000.00717.02
8.0.180.0040.00416.84
8.0.170.0040.00416.86
8.0.160.0030.00316.96
8.0.150.0000.00816.81
8.0.140.0040.00416.91
8.0.130.0000.00613.26
8.0.120.0030.00516.88
8.0.110.0040.00416.89
8.0.100.0040.00416.82
8.0.90.0000.00716.86
8.0.80.0060.00916.89
8.0.70.0000.00716.94
8.0.60.0040.00417.02
8.0.50.0080.00016.89
8.0.30.0150.01017.11
8.0.20.0080.01417.41
8.0.10.0040.00417.02
8.0.00.0070.01016.67
7.4.330.0000.00515.08
7.4.320.0000.00616.63
7.4.300.0030.00316.52
7.4.290.0020.00716.60
7.4.280.0040.00416.46
7.4.270.0000.00716.48
7.4.260.0000.00716.54
7.4.250.0000.00716.61
7.4.240.0060.00216.63
7.4.230.0040.00416.37
7.4.220.0110.00916.69
7.4.210.0120.00716.57
7.4.200.0000.00716.63
7.4.160.0000.01616.80
7.4.150.0130.01117.40
7.4.140.0070.01117.86
7.4.130.0100.00716.51
7.4.120.0120.00416.66
7.4.110.0070.01716.65
7.4.100.0100.00716.41
7.4.90.0070.01016.46
7.4.80.0060.01419.39
7.4.70.0110.00716.57
7.4.60.0030.01316.66
7.4.50.0050.00316.31
7.4.40.0090.00916.57
7.4.30.0110.01116.70
7.4.10.0100.00715.09
7.4.00.0080.00614.78
7.3.330.0050.00013.22
7.3.320.0070.00713.25
7.3.310.0030.00316.26
7.3.300.0000.00716.39
7.3.290.0030.00316.25
7.3.280.0100.00616.33
7.3.270.0170.00017.40
7.3.260.0110.01116.36
7.3.250.0150.00716.47
7.3.240.0090.00916.62
7.3.230.0170.00516.60
7.3.210.0060.01116.58
7.3.200.0120.00919.39
7.3.190.0000.01616.50
7.3.180.0180.00316.36
7.3.170.0050.01416.41
7.3.160.0110.01116.39
7.3.130.0060.01215.05
7.3.120.0100.00714.89
7.3.110.0060.01014.67
7.3.100.0070.00715.10
7.3.90.0030.01014.77
7.3.80.0060.00914.76
7.3.70.0060.00914.64
7.3.60.0000.00914.82
7.3.50.0000.00914.75
7.3.40.0090.00314.91
7.3.30.0030.01014.98
7.3.20.0100.00316.70
7.3.10.0030.00716.68
7.3.00.5780.00415.22
7.2.330.0060.00916.70
7.2.320.0030.01316.71
7.2.310.0080.00816.68
7.2.300.0100.01016.41
7.2.290.0060.01616.53
7.2.260.0030.01414.91
7.2.250.0030.01315.04
7.2.240.0000.01515.26
7.2.230.0130.00315.29
7.2.220.0000.01615.21
7.2.210.0040.00714.64
7.2.200.0070.00714.93
7.2.190.0100.00314.96
7.2.180.0030.01315.09
7.2.170.0030.01015.09
7.2.160.0060.01014.77
7.2.150.0030.01016.99
7.2.140.0130.00016.69
7.2.130.4230.00915.31
7.2.120.3560.01115.31
7.2.110.3790.00915.36
7.2.100.1940.00715.27
7.2.90.0670.00615.35
7.2.80.2100.00915.30
7.2.70.1540.00415.53
7.2.60.1110.00715.90
7.2.50.1470.00715.82
7.2.40.1490.00915.54
7.2.30.1100.00815.52
7.2.20.0550.00715.69
7.2.10.0600.01015.64
7.2.00.1020.01015.43
7.1.330.0060.00615.53
7.1.320.0030.00715.80
7.1.310.0080.00615.73
7.1.300.0030.01015.57
7.1.290.0070.00716.05
7.1.280.0040.00815.82
7.1.270.0060.00615.88
7.1.260.0000.01415.63
7.1.250.1920.01114.51
7.1.240.2320.00614.53
7.1.230.3540.00714.71
7.1.220.2570.00814.74
7.1.210.0650.00814.52
7.1.200.1410.00714.84
7.1.190.1460.01014.64
7.1.180.0630.01014.53
7.1.170.1350.00814.59
7.1.160.1180.00814.51
7.1.150.0750.00814.58
7.1.140.0670.00614.51
7.1.130.0900.01214.54
7.1.120.0990.00814.62
7.1.110.0770.00414.65
7.1.100.0870.00915.71
7.1.90.0270.01315.70
7.1.80.1920.00915.63
7.1.70.1030.00815.59
7.1.60.1190.00921.27
7.1.50.1180.01021.17
7.1.40.0720.00921.12
7.1.30.0770.00621.29
7.1.20.0660.00921.29
7.1.10.1090.00814.94
7.1.00.0770.00815.40
7.0.330.2730.00814.03
7.0.320.2690.00814.30
7.0.310.1990.00814.26
7.0.300.1320.00314.22
7.0.290.1050.00814.23
7.0.280.0530.01014.15
7.0.270.0770.00414.29
7.0.260.0630.01014.25
7.0.250.0540.00814.29
7.0.240.1620.00715.32
7.0.230.1620.01015.22
7.0.220.1770.01015.19
7.0.210.1060.00714.91
7.0.200.0920.00815.16
7.0.190.1080.00615.22
7.0.180.0810.01014.94
7.0.170.0730.01014.96
7.0.160.0710.00714.95
7.0.150.0860.01014.74
7.0.140.0630.00914.97
7.0.130.0480.00715.05
7.0.120.0490.00914.74
7.0.110.0760.00814.65
7.0.100.0900.01114.74
7.0.90.0510.00814.64
7.0.80.0900.01014.71
7.0.70.1120.00914.91
7.0.60.0540.01014.89
7.0.50.0410.00915.08
7.0.40.0450.00914.43
7.0.30.0550.00714.46
7.0.20.0470.00914.41
7.0.10.0460.00914.47
7.0.00.0670.00814.49
5.6.400.0040.01414.63
5.6.390.0030.00614.54
5.6.380.0050.01214.38
5.6.370.0130.00714.38
5.6.360.0120.00814.46
5.6.350.0090.00914.37
5.6.340.0110.00914.59
5.6.330.0110.00814.49
5.6.320.0120.00814.42
5.6.310.0120.01014.57
5.6.300.0100.03917.56
5.6.290.0100.03517.52
5.6.280.0100.03817.71
5.6.270.0100.03617.74
5.6.260.0080.03617.60
5.6.250.0110.03317.74
5.6.240.0100.03417.68
5.6.230.0100.04117.64
5.6.220.0120.03817.61
5.6.210.0160.03417.64
5.6.200.0130.03817.65
5.6.190.0120.03917.65
5.6.180.0110.03617.57
5.6.170.0130.03317.58
5.6.160.0160.03717.63
5.6.150.0180.03617.67
5.6.140.0140.03217.62
5.6.130.0140.02917.70
5.6.120.0120.03017.65
5.6.110.0120.03017.58
5.6.100.0150.03017.65
5.6.90.0130.03417.65
5.6.80.0090.03017.21
5.6.70.0090.03317.31
5.6.60.0130.03417.33
5.6.50.0120.03217.28
5.6.40.0110.03617.29
5.6.30.0150.03517.28
5.6.20.0130.03317.22
5.6.10.0150.02917.37
5.6.00.0120.03017.32
5.5.380.0100.03815.00
5.5.370.0110.03815.05
5.5.360.0090.03715.05
5.5.350.0110.04015.04
5.5.340.0140.04015.30
5.5.330.0120.03315.27
5.5.320.0140.03715.40
5.5.310.0140.03815.30
5.5.300.0090.03415.38
5.5.290.0090.03815.33
5.5.280.0100.03815.36
5.5.270.0110.03515.34
5.5.260.0080.03715.27
5.5.250.0090.03615.21
5.5.240.0080.03514.97
5.5.230.0130.04014.85
5.5.220.0070.04214.89
5.5.210.0100.03714.83
5.5.200.0110.03714.79
5.5.190.0140.03914.66
5.5.180.0130.03614.91
5.5.170.0200.00214.31
5.5.160.0100.03614.88
5.5.150.0140.03214.93
5.5.140.0100.03714.88
5.5.130.0110.03314.83
5.5.120.0120.03314.90
5.5.110.0120.03714.92
5.5.100.0070.04314.86
5.5.90.0100.04114.90
5.5.80.0150.03514.91
5.5.70.0130.03914.90
5.5.60.0090.03714.75
5.5.50.0130.03814.75
5.5.40.0070.03914.94
5.5.30.0110.03214.85
5.5.20.0110.03214.70
5.5.10.0140.04314.94
5.5.00.0100.04114.89
5.4.450.0110.04016.06
5.4.440.0150.03516.21
5.4.430.0100.03716.04
5.4.420.0090.03816.01
5.4.410.0140.03415.96
5.4.400.0100.03415.92
5.4.390.0090.04315.83
5.4.380.0060.03915.95
5.4.370.0070.04615.83
5.4.360.0120.04015.86
5.4.350.0100.04015.77
5.4.340.0120.03515.92
5.4.330.0120.00511.09
5.4.320.0120.04115.89
5.4.310.0100.03515.92
5.4.300.0100.04115.99
5.4.290.0120.03215.89
5.4.280.0090.03516.02
5.4.270.0110.03615.87
5.4.260.0130.03615.77
5.4.250.0130.03916.02
5.4.240.0140.03415.89
5.4.230.0130.03315.96
5.4.220.0120.03315.91
5.4.210.0130.03615.92
5.4.200.0090.03815.74
5.4.190.0160.03215.79
5.4.180.0070.04115.88
5.4.170.0140.03015.83
5.4.160.0140.03615.91
5.4.150.0110.03715.83
5.4.140.0130.03414.40
5.4.130.0110.03314.36
5.4.120.0090.03314.46
5.4.110.0100.03014.43
5.4.100.0150.03214.46
5.4.90.0120.03614.40
5.4.80.0150.03414.33
5.4.70.0110.03114.40
5.4.60.0080.03614.30
5.4.50.0090.03314.40
5.4.40.0100.03314.51
5.4.30.0110.02914.38
5.4.20.0100.03614.43
5.4.10.0140.03114.41
5.4.00.0120.03314.08

preferences:
52 ms | 401 KiB | 5 Q