3v4l.org

run code in 300+ PHP versions simultaneously
<?php function createCombinations($input, $length) { foreach($input as $c) { if($length == 1) { echo $c; } else { foreach(createCombinations($input, $length -1) as $s) { echo $c + $s; } } } } $texte = "abcdefghijklmnopqrstuvwxyz0123456789"; $input = str_split($texte ); createCombinations($input, 4);

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.0410.02118.43
8.3.50.0550.01821.94
8.3.40.0600.01818.70
8.3.30.0650.01918.91
8.3.20.0230.01520.29
8.3.10.0280.01020.71
8.3.00.0150.01919.38
8.2.180.0470.01516.75
8.2.170.0460.01922.96
8.2.160.0510.01320.39
8.2.150.0300.01124.18
8.2.140.0310.00324.66
8.2.130.0320.00326.16
8.2.120.0370.00022.18
8.2.110.0340.00722.33
8.2.100.0420.00317.78
8.2.90.0060.00919.15
8.2.80.0070.01417.97
8.2.70.0120.00817.63
8.2.60.0150.01217.93
8.2.50.0170.00318.07
8.2.40.0110.01118.16
8.2.30.0150.00619.39
8.2.20.0210.00017.82
8.2.10.0130.00718.12
8.2.00.0170.00617.84
8.1.280.0460.01525.92
8.1.270.0340.00022.06
8.1.260.0260.00726.35
8.1.250.0190.01328.09
8.1.240.0460.00023.89
8.1.230.0290.00319.03
8.1.220.0080.01217.74
8.1.210.0110.00318.77
8.1.200.0100.01017.25
8.1.190.0210.00017.22
8.1.180.0170.00618.10
8.1.170.0100.01018.45
8.1.160.0160.00322.05
8.1.150.0140.00718.92
8.1.140.0080.01117.53
8.1.130.0160.00518.01
8.1.120.0160.00317.55
8.1.110.0130.00817.52
8.1.100.0030.01017.49
8.1.90.0080.01217.49
8.1.80.0130.00817.52
8.1.70.0110.00817.55
8.1.60.0190.00317.66
8.1.50.0160.00817.55
8.1.40.0170.00317.47
8.1.30.0120.01217.66
8.1.20.0160.00417.60
8.1.10.0090.00617.63
8.1.00.0110.01117.46
8.0.300.0190.00418.81
8.0.290.0090.01116.63
8.0.280.0080.01118.33
8.0.270.0100.01017.13
8.0.260.0100.01017.08
8.0.250.0080.01216.92
8.0.240.0160.00317.03
8.0.230.0040.00816.79
8.0.220.0170.00316.81
8.0.210.0160.00416.96
8.0.200.0110.00816.93
8.0.190.0100.01516.91
8.0.180.0170.00716.96
8.0.170.0170.00416.92
8.0.160.0100.01616.89
8.0.150.0220.00016.91
8.0.140.0180.00516.90
8.0.130.0180.00713.43
8.0.120.0120.00916.89
8.0.110.0150.00016.80
8.0.100.0040.00816.71
8.0.90.0110.00016.86
8.0.80.0610.01716.82
8.0.70.0080.01216.87
8.0.60.0190.00316.86
8.0.50.0050.01816.85
8.0.30.0750.03417.13
8.0.20.0890.04517.40
8.0.10.0110.00717.01
8.0.00.0900.03916.62
7.4.330.0100.01015.14
7.4.320.0150.00616.36
7.4.300.0120.00916.40
7.4.290.0140.00716.41
7.4.280.0240.00316.45
7.4.270.0220.00416.52
7.4.260.0140.00716.50
7.4.250.0090.00616.46
7.4.240.0090.01416.46
7.4.230.0150.00916.48
7.4.220.0530.06116.45
7.4.210.0230.02916.52
7.4.200.0140.00716.48
7.4.160.0830.07116.44
7.4.150.0860.05017.40
7.4.140.0520.04417.86
7.4.130.0980.03516.51
7.4.120.0700.04816.41
7.4.110.0660.04716.47
7.4.100.0870.04516.56
7.4.90.1050.04416.50
7.4.80.0440.05418.63
7.4.70.0640.03016.46
7.4.60.0890.06516.40
7.4.50.0200.01616.32
7.4.40.0540.05416.36
7.4.30.0650.04216.46
7.4.00.0370.01914.95
7.3.330.0130.01013.24
7.3.320.0110.01113.24
7.3.310.0180.00416.33
7.3.300.0190.00416.11
7.3.290.0420.05416.30
7.3.280.0300.04316.24
7.3.270.1010.02017.40
7.3.260.0640.04516.32
7.3.250.0950.04216.48
7.3.240.0670.06416.23
7.3.230.0620.03616.39
7.3.210.0750.05916.29
7.3.200.0930.05519.39
7.3.190.0680.03216.54
7.3.180.0440.05816.36
7.3.170.0630.04816.34
7.3.160.0480.04216.48
7.2.330.0800.05916.73
7.2.320.0740.02616.66
7.2.310.0830.03216.46
7.2.300.0590.03616.33
7.2.290.0490.05616.64
7.2.00.0170.00719.29
7.1.100.0150.00618.08
7.1.70.0070.00717.20
7.1.60.0240.00919.32
7.1.50.0240.02717.21
7.0.200.0290.00416.90

preferences:
32.01 ms | 401 KiB | 5 Q