3v4l.org

run code in 300+ PHP versions simultaneously
<?php function createAttributeCollections($pricingAttributes = null, $permutation = array()){ //permutation result if (empty($pricingAttributes)) { echo implode(',', $permutation )."\n"; //permutation } else { //permutation loop for ($i = count($pricingAttributes) - 1; $i >= 0; --$i) { $newpricingAttributes = $pricingAttributes; $newPermutations = $permutation; list($foo) = array_splice($newpricingAttributes, $i, 1); array_unshift($newPermutations, $foo); createAttributeCollections($newpricingAttributes, $newPermutations); } } } $results = createAttributeCollections(array('A','B','G','U','S'));

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.0140.00718.32
8.3.50.0120.00722.04
8.3.40.0150.00318.67
8.3.30.0070.00719.01
8.3.20.0120.00420.33
8.3.10.0060.00321.47
8.3.00.0030.00519.21
8.2.180.0100.01018.41
8.2.170.0140.00422.96
8.2.160.0030.01022.26
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.66
8.2.110.0090.00022.21
8.2.100.0000.01217.91
8.2.90.0060.00319.45
8.2.80.0040.00418.73
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0030.00518.34
8.2.30.0050.00318.07
8.2.20.0040.00417.76
8.2.10.0020.00518.13
8.2.00.0000.00717.62
8.1.280.0110.00725.92
8.1.270.0090.00018.86
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00323.91
8.1.230.0060.00619.01
8.1.220.0050.00317.78
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0040.00417.36
8.1.180.0060.00318.10
8.1.170.0040.00418.54
8.1.160.0070.00018.94
8.1.150.0070.00018.94
8.1.140.0070.00017.45
8.1.130.0000.00717.82
8.1.120.0050.00217.53
8.1.110.0050.00317.35
8.1.100.0030.00517.52
8.1.90.0000.00817.45
8.1.80.0020.00517.36
8.1.70.0030.00517.52
8.1.60.0100.00017.61
8.1.50.0040.00417.55
8.1.40.0000.00817.52
8.1.30.0050.00317.58
8.1.20.0060.00317.70
8.1.10.0000.00817.55
8.1.00.0050.00317.45
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0000.00718.49
8.0.270.0000.00717.12
8.0.260.0000.00617.14
8.0.250.0040.00416.84
8.0.240.0030.00617.00
8.0.230.0040.00416.98
8.0.220.0040.00416.88
8.0.210.0000.00716.78
8.0.200.0040.00416.94
8.0.190.0040.00416.82
8.0.180.0040.00416.94
8.0.170.0050.00316.96
8.0.160.0040.00416.94
8.0.150.0040.00416.79
8.0.140.0050.00216.84
8.0.130.0000.00613.39
8.0.120.0090.00016.77
8.0.110.0040.00416.89
8.0.100.0040.00416.84
8.0.90.0040.00416.73
8.0.80.0130.00316.95
8.0.70.0000.00816.95
8.0.60.0050.00316.93
8.0.50.0030.00516.75
8.0.30.0110.01316.93
8.0.20.0080.01317.40
8.0.10.0050.00217.05
8.0.00.0160.00616.84
7.4.330.0030.00315.09
7.4.320.0000.00716.65
7.4.300.0030.00316.49
7.4.290.0030.00516.52
7.4.280.0000.00816.63
7.4.270.0060.00316.60
7.4.260.0030.00616.48
7.4.250.0050.00316.46
7.4.240.0080.00016.50
7.4.230.0030.00316.63
7.4.220.0100.01316.57
7.4.210.0090.00616.61
7.4.200.0000.00816.40
7.4.160.0070.01016.46
7.4.150.0190.00617.40
7.4.140.0070.01117.86
7.4.130.0120.00716.51
7.4.120.0060.01116.58
7.4.110.0050.01516.57
7.4.100.0060.01216.53
7.4.90.0090.00916.63
7.4.80.0110.00719.39
7.4.70.0030.01416.53
7.4.60.0090.00916.39
7.4.50.0040.00416.44
7.4.40.0040.01516.51
7.4.30.0140.00716.71
7.4.00.0060.00914.80
7.3.330.0050.00013.32
7.3.320.0000.00513.41
7.3.310.0040.00416.34
7.3.300.0050.00216.38
7.3.290.0110.00416.36
7.3.280.0110.00916.41
7.3.270.0030.01517.40
7.3.260.0110.00816.35
7.3.250.0060.01216.51
7.3.240.0060.01216.54
7.3.230.0060.01616.61
7.3.210.0090.00916.63
7.3.200.0060.01316.53
7.3.190.0100.00716.38
7.3.180.0110.00616.37
7.3.170.0090.01216.61
7.3.160.0100.01016.28
7.3.10.0190.00616.59
7.3.00.0130.00616.50
7.2.330.0040.01416.86
7.2.320.0030.01916.70
7.2.310.0070.01016.66
7.2.300.0200.00616.44
7.2.290.0080.01116.58
7.2.130.0240.00616.84
7.2.120.0070.01016.77
7.2.110.0040.01116.82
7.2.100.0060.01016.97
7.2.90.0040.00816.98
7.2.80.0060.01016.80
7.2.70.0030.01116.61
7.2.60.0020.01216.80
7.2.50.0060.00916.81
7.2.40.0100.00716.66
7.2.30.0100.00617.02
7.2.20.0130.00316.97
7.2.10.0100.00717.06
7.2.00.0050.00918.21
7.1.250.0130.00015.76
7.1.200.0030.00915.83
7.1.100.0030.01018.07
7.1.70.0110.00016.99
7.1.60.0100.01719.22
7.1.50.0200.01034.88
7.1.00.0100.06722.37
7.0.200.0040.00416.60
7.0.140.0030.03321.96
7.0.60.0070.07020.03
7.0.50.0070.08017.97
7.0.40.0100.08020.21
7.0.30.0270.06020.06
7.0.20.0330.08020.08
7.0.10.0100.08320.43
7.0.00.0070.08720.09
5.6.280.0030.07720.90
5.6.210.0100.07720.61
5.6.200.0130.07018.29
5.6.190.0130.07020.62
5.6.180.0330.08020.47
5.6.170.0130.05020.56
5.6.160.0070.08720.57
5.6.150.0000.05718.15
5.6.140.0100.03318.14
5.6.130.0030.04018.21
5.6.120.0070.08021.01
5.6.110.0070.06021.00
5.6.100.0130.07721.01
5.6.90.0030.07320.98
5.6.80.0000.06720.41
5.5.350.0170.08720.47
5.5.340.0070.05017.98
5.5.330.0100.04020.19
5.5.320.0230.05320.20
5.5.310.0270.06720.32
5.5.300.0100.07717.95
5.5.290.0070.03718.09
5.5.280.0130.05720.90
5.5.270.0070.03720.88
5.5.260.0070.08720.68
5.5.250.0130.05320.79
5.5.240.0070.07320.14
5.4.450.0730.06319.30
5.4.440.0970.08019.57
5.4.430.0530.06019.56
5.4.420.0530.05719.60
5.4.410.0870.05319.57
5.4.400.0600.05719.09
5.4.390.0800.05019.03
5.4.380.0300.07018.51
5.4.370.0300.07018.74
5.4.360.0300.06718.58
5.4.350.0230.05018.72
5.4.340.0130.05718.53
5.4.320.0170.06318.75
5.4.310.0230.05018.82
5.4.300.0170.06318.52
5.4.290.0230.06018.77
5.4.280.0170.05718.71
5.4.270.0200.05318.61
5.4.260.0200.05318.80
5.4.250.0200.06018.59
5.4.240.0130.06318.66
5.4.230.0200.05718.71
5.4.220.0130.06018.75
5.4.210.0170.05318.57
5.4.200.0130.05316.78
5.4.190.0100.06018.75
5.4.180.0170.05318.48
5.4.170.0200.05318.76
5.4.160.0130.05718.73
5.4.150.0170.05318.70
5.4.140.0170.05316.21
5.4.130.0230.04716.29
5.4.120.0230.04716.46
5.4.110.0300.04716.43
5.4.100.0230.06016.46
5.4.90.0200.05016.18
5.4.80.0300.04716.30
5.4.70.0230.05316.16
5.4.60.0200.05716.41
5.4.50.0170.06016.26
5.4.40.0100.06316.40
5.4.30.0070.06016.29
5.4.20.0300.05016.26
5.4.10.0270.06316.40
5.4.00.0170.05015.91
5.3.290.0200.06014.69
5.3.280.0200.05314.62
5.3.270.0270.05014.59
5.3.260.0270.05014.82
5.3.250.0270.07014.77
5.3.240.0330.06014.60
5.3.230.0270.06314.82
5.3.220.0200.05714.55
5.3.210.0200.05314.60
5.3.200.0030.06714.67
5.3.190.0130.06714.79
5.3.180.0200.05014.75
5.3.170.0430.04714.59
5.3.160.0070.06714.70
5.3.150.0200.05314.63
5.3.140.0200.05014.66
5.3.130.0200.05314.76
5.3.120.0230.05314.69
5.3.110.0170.05314.68
5.3.100.0200.05014.26
5.3.90.0130.05714.07
5.3.80.0130.05314.04
5.3.70.0130.05314.08
5.3.60.0200.05314.06
5.3.50.0100.05714.02
5.3.40.0100.05714.02
5.3.30.0130.05313.98
5.3.20.0130.05013.75
5.3.10.0100.05313.65
5.3.00.0170.05313.84
5.2.170.0200.03711.20
5.2.160.0200.03711.37
5.2.150.0130.04711.27
5.2.140.0170.04311.16
5.2.130.0100.05011.16
5.2.120.0200.03711.14
5.2.110.0230.04311.14
5.2.100.0170.04011.10
5.2.90.0130.04311.21
5.2.80.0300.04711.14
5.2.70.0200.05711.13
5.2.60.0170.04311.15
5.2.50.0170.04311.09
5.2.40.0100.06311.05
5.2.30.0100.04711.02
5.2.20.0270.04310.99
5.2.10.0070.05710.91
5.2.00.0100.05010.75
5.1.60.0100.04710.04
5.1.50.0130.03710.04
5.1.40.0100.03710.17
5.1.30.0130.03710.38
5.1.20.0100.04010.46
5.1.10.0130.03710.21
5.1.00.0030.04710.09
5.0.50.0130.0278.76
5.0.40.0070.0308.61
5.0.30.0070.0478.27
5.0.20.0100.0308.32
5.0.10.0070.0338.27
5.0.00.0030.0508.25
4.4.90.0100.0237.01
4.4.80.0070.0237.01
4.4.70.0070.0377.01
4.4.60.0070.0307.01
4.4.50.0070.0237.01
4.4.40.0030.0407.01
4.4.30.0070.0237.01
4.4.20.0100.0277.01
4.4.10.0100.0277.01
4.4.00.0100.0407.01
4.3.110.0070.0237.01
4.3.100.0000.0307.01
4.3.90.0070.0237.01
4.3.80.0070.0377.01
4.3.70.0070.0237.01
4.3.60.0100.0207.01
4.3.50.0170.0177.01
4.3.40.0030.0377.01
4.3.30.0070.0207.01
4.3.20.0030.0237.01
4.3.10.0000.0277.01
4.3.00.0100.0237.62

preferences:
56.85 ms | 401 KiB | 5 Q