3v4l.org

run code in 300+ PHP versions simultaneously
<?php function findFamily($n) { $numbers = str_split("$n"); $combos = array(); $count = count($numbers); for($i = 0; $i < $count; $i++) { $result = ''; foreach($numbers as $number) $result .= $number; $value = $numbers[$i]; unset($numbers[$i]); $numbers[] = $value; $combos[] = $result; } return $combos; } print_r(FindFamily(123)); ?>

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.0000.01518.43
8.3.50.0120.00621.32
8.3.40.0040.01118.42
8.3.30.0110.00319.09
8.3.20.0000.00720.29
8.3.10.0040.00423.66
8.3.00.0050.00319.26
8.2.180.0130.00716.63
8.2.170.0070.00722.96
8.2.160.0070.01020.21
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00422.24
8.2.110.0040.00721.11
8.2.100.0090.00317.75
8.2.90.0040.00419.36
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0050.01017.79
8.2.50.0030.00518.07
8.2.40.0000.00820.07
8.2.30.0030.00518.11
8.2.20.0000.00717.60
8.2.10.0000.00818.00
8.2.00.0000.00817.62
8.1.280.0180.00425.92
8.1.270.0070.00322.06
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0060.00323.80
8.1.230.0090.00317.48
8.1.220.0050.00317.76
8.1.210.0090.00018.77
8.1.200.0030.00917.23
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0060.00318.66
8.1.160.0040.00422.06
8.1.150.0000.00718.89
8.1.140.0050.00217.36
8.1.130.0030.00317.91
8.1.120.0000.00817.47
8.1.110.0080.00017.54
8.1.100.0000.00717.34
8.1.90.0030.00717.39
8.1.80.0050.00317.45
8.1.70.0040.00417.44
8.1.60.0050.00517.51
8.1.50.0060.00317.50
8.1.40.0030.00617.52
8.1.30.0030.00517.55
8.1.20.0070.00017.63
8.1.10.0070.00017.48
8.1.00.0000.00817.46
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0030.00318.51
8.0.270.0030.00517.16
8.0.260.0030.00317.17
8.0.250.0000.00816.91
8.0.240.0060.00016.98
8.0.230.0000.00716.84
8.0.220.0000.00716.93
8.0.210.0000.00616.89
8.0.200.0000.00616.82
8.0.190.0040.00416.96
8.0.180.0000.00716.79
8.0.170.0040.00416.93
8.0.160.0000.00716.94
8.0.150.0060.00316.93
8.0.140.0000.00716.75
8.0.130.0050.00313.28
8.0.120.0030.00616.86
8.0.110.0050.00216.94
8.0.100.0030.00616.85
8.0.90.0070.00016.72
8.0.80.0110.00716.91
8.0.70.0000.00716.72
8.0.60.0070.00016.93
8.0.50.0040.00416.85
8.0.30.0140.00616.94
8.0.20.0090.01017.40
8.0.10.0040.00417.05
8.0.00.0130.00316.75
7.4.330.0040.00415.02
7.4.320.0000.00616.46
7.4.300.0000.00616.51
7.4.290.0030.00316.36
7.4.280.0040.00316.59
7.4.270.0030.00316.64
7.4.260.0040.00416.52
7.4.250.0050.00216.47
7.4.240.0040.00316.46
7.4.230.0000.00716.69
7.4.220.0100.01316.70
7.4.210.0090.01216.63
7.4.200.0030.00316.48
7.4.160.0090.00616.37
7.4.150.0060.01617.40
7.4.140.0150.00617.86
7.4.130.0060.01116.53
7.4.120.0100.00716.41
7.4.110.0100.00616.51
7.4.100.0130.00716.62
7.4.90.0100.00616.29
7.4.80.0070.01019.39
7.4.70.0060.01216.38
7.4.60.0120.00316.31
7.4.50.0000.00716.52
7.4.40.0100.00716.66
7.4.30.0130.00416.52
7.4.00.0090.00315.10
7.3.330.0020.00213.22
7.3.320.0060.00013.34
7.3.310.0040.00416.26
7.3.300.0030.00316.24
7.3.290.0100.00716.37
7.3.280.0110.00616.36
7.3.270.0080.01217.40
7.3.260.0180.00016.27
7.3.250.0080.01216.34
7.3.240.0100.00616.34
7.3.230.0060.01016.39
7.3.210.0110.00516.57
7.3.200.0150.00619.39
7.3.190.0090.00916.64
7.3.180.0080.00816.51
7.3.170.0080.00816.53
7.3.160.0030.01316.51
7.2.330.0090.00916.87
7.2.320.0090.01316.56
7.2.310.0200.00316.43
7.2.300.0100.00616.50
7.2.290.0130.00316.77
7.2.60.0070.00717.11
7.2.00.0030.01019.52
7.1.200.0090.00315.82
7.1.100.0040.00818.12
7.1.70.0000.01017.03
7.1.60.0070.01719.11
7.1.50.0150.00917.11
7.1.00.0070.07322.36
7.0.200.0030.00616.79
7.0.140.0100.06721.95
7.0.100.0200.07019.91
7.0.90.0100.04320.00
7.0.80.0100.08019.92
7.0.70.0130.04319.86
7.0.60.0030.04719.94
7.0.50.0170.07020.32
7.0.40.0070.07020.14
7.0.30.0070.04020.04
7.0.20.0070.04720.14
7.0.10.0100.04020.07
7.0.00.0070.04020.04
5.6.280.0070.07021.05
5.6.250.0000.06320.53
5.6.240.0070.08720.70
5.6.230.0000.09020.75
5.6.220.0070.04720.61
5.6.210.0130.06320.75
5.6.200.0030.09721.04
5.6.190.0000.08321.08
5.6.180.0000.05321.00
5.6.170.0030.04321.02
5.6.160.0070.03721.05
5.6.150.0000.04720.96
5.6.140.0000.06320.93
5.6.130.0030.04320.98
5.6.120.0000.09021.02
5.6.110.0070.04321.13
5.6.100.0200.07321.01
5.6.90.0070.03721.07
5.6.80.0030.07320.34
5.6.70.0030.04020.49
5.6.60.0030.03720.51
5.6.50.0030.04020.44
5.6.40.0130.03320.46
5.6.30.0130.03320.30
5.6.20.0030.04020.43
5.6.10.0100.03320.37
5.6.00.0000.04720.42
5.5.380.0070.08320.36
5.5.370.0200.03720.51
5.5.360.0170.07020.36
5.5.350.0130.08020.40
5.5.340.0100.06020.84
5.5.330.0030.04720.81
5.5.320.0100.05320.88
5.5.310.0070.03720.82
5.5.300.0070.03320.73
5.5.290.0070.04320.64
5.5.280.0000.07720.77
5.5.270.0130.03320.72
5.5.260.0100.03320.92
5.5.250.0130.04720.64
5.5.240.0030.05020.20
5.5.230.0030.04020.18
5.5.220.0030.04020.14
5.5.210.0070.04020.14
5.5.200.0000.04320.25
5.5.190.0100.03320.22
5.5.180.0100.03320.11
5.5.160.0070.03720.24
5.5.150.0000.03320.14
5.5.140.0030.03320.17
5.5.130.0000.04020.22
5.5.120.0000.04020.12
5.5.110.0070.04020.22
5.5.100.0030.04020.17
5.5.90.0000.03720.04
5.5.80.0070.03719.97
5.5.70.0030.03720.10
5.5.60.0030.03319.96
5.5.50.0030.04019.95
5.5.40.0100.05719.94
5.5.30.0000.04020.08
5.5.20.0070.04720.07
5.5.10.0100.07720.10
5.5.00.0000.03720.04
5.4.450.0030.04019.47
5.4.440.0070.06319.23
5.4.430.0130.06319.20
5.4.420.0100.03019.37
5.4.410.0000.04319.37
5.4.400.0000.04018.85
5.4.390.0000.04319.16
5.4.380.0030.04019.14
5.4.370.0100.03319.03
5.4.360.0000.04019.18
5.4.350.0000.04018.90
5.4.340.0030.03719.21
5.4.320.0000.04018.94
5.4.310.0000.03719.18
5.4.300.0070.03319.04
5.4.290.0000.04019.08
5.4.280.0070.03719.16
5.4.270.0000.03318.95
5.4.260.0000.04318.95
5.4.250.0030.03019.04
5.4.240.0100.03019.18
5.4.230.0030.03719.12
5.4.220.0030.03019.02
5.4.210.0030.03019.02
5.4.200.0070.03019.04
5.4.190.0070.03018.87
5.4.180.0170.07719.08
5.4.170.0030.07719.11
5.4.160.0070.07719.19
5.4.150.0070.06319.11
5.4.140.0070.07016.14
5.4.130.0070.07016.43
5.4.120.0030.07716.33
5.4.110.0000.06316.46
5.4.100.0030.06316.34
5.4.90.0030.07016.51
5.4.80.0130.06316.45
5.4.70.0030.07016.48
5.4.60.0070.07316.25
5.4.50.0000.07316.47
5.4.40.0130.03316.46
5.4.30.0070.07316.36
5.4.20.0030.05716.36
5.4.10.0030.04716.40
5.4.00.0000.07715.78
5.3.290.0000.04014.75
5.3.280.0070.03314.61
5.3.270.0070.07314.71
5.3.260.0070.08014.59
5.3.250.0070.07314.54
5.3.240.0070.03014.53
5.3.230.0070.07314.59
5.3.220.0030.07714.49
5.3.210.0070.07014.49
5.3.200.0100.04014.57
5.3.190.0030.04314.65
5.3.180.0000.07714.68
5.3.170.0070.07314.62
5.3.160.0030.07014.62
5.3.150.0100.06714.63
5.3.140.0070.03714.47
5.3.130.0130.06714.49
5.3.120.0070.07314.66
5.3.110.0030.06314.55
5.3.100.0070.07314.00
5.3.90.0030.05714.11
5.3.80.0130.06714.14
5.3.70.0070.07014.16
5.3.60.0070.08014.13
5.3.50.0070.07313.86
5.3.40.0000.08314.05
5.3.30.0000.07713.96
5.3.20.0030.07713.57
5.3.10.0130.06013.72
5.3.00.0030.05313.71
5.2.170.0100.06011.20
5.2.160.0030.06311.19
5.2.150.0000.05011.27
5.2.140.0070.06311.20
5.2.130.0070.05711.15
5.2.120.0070.05311.09
5.2.110.0030.06011.00
5.2.100.0030.06011.23
5.2.90.0030.03011.16
5.2.80.0000.05710.95
5.2.70.0070.06311.18
5.2.60.0100.05711.05
5.2.50.0030.06011.01
5.2.40.0130.05311.00
5.2.30.0000.03310.88
5.2.20.0070.05310.96
5.2.10.0000.06010.92
5.2.00.0130.04710.70
5.1.60.0100.03310.06
5.1.50.0000.05010.11
5.1.40.0000.05710.09
5.1.30.0000.05710.39
5.1.20.0000.06710.46
5.1.10.0000.05710.15
5.1.00.0030.04710.06
5.0.50.0030.0478.64
5.0.40.0000.0478.47
5.0.30.0100.0378.23
5.0.20.0030.0338.27
5.0.10.0000.0238.25
5.0.00.0070.0638.23
4.4.90.0000.0208.23
4.4.80.0070.0308.23
4.4.70.0030.0308.23
4.4.60.0000.0308.23
4.4.50.0030.0338.23
4.4.40.0000.0508.23
4.4.30.0000.0378.23
4.4.20.0000.0208.23
4.4.10.0000.0308.23
4.4.00.0030.0478.23
4.3.110.0030.0338.23
4.3.100.0000.0378.23
4.3.90.0000.0378.23
4.3.80.0030.0508.23
4.3.70.0030.0208.23
4.3.60.0000.0378.23
4.3.50.0070.0338.23
4.3.40.0000.0538.23
4.3.30.0000.0378.23
4.3.20.0000.0378.23
4.3.10.0000.0338.23
4.3.00.0070.0308.23

preferences:
45.36 ms | 401 KiB | 5 Q