3v4l.org

run code in 300+ PHP versions simultaneously
<?php function showCombinations($string, $traits, $i) { if ($i >= count($traits)) echo trim($string) . "\n"; else { foreach ($traits[$i] as $trait) showCombinations("$string $trait", $traits, $i + 1); } } $traits = array ( array('Happy', 'Sad', 'Angry', 'Hopeful'), array('Outgoing', 'Introverted'), array('Tall', 'Short', 'Medium'), array('Handsome', 'Plain', 'Ugly') ); showCombinations('', $traits, 0);

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.70.0090.01216.63
8.3.60.0110.00316.50
8.3.50.0070.01021.92
8.3.40.0040.01118.89
8.3.30.0130.00319.06
8.3.20.0040.00420.34
8.3.10.0000.00823.56
8.3.00.0000.00822.39
8.2.180.0100.01016.36
8.2.170.0150.00022.96
8.2.160.0100.00320.21
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.01126.16
8.2.120.0060.00320.01
8.2.110.0070.00322.14
8.2.100.0080.00417.91
8.2.90.0000.00819.22
8.2.80.0000.00818.03
8.2.70.0060.00317.61
8.2.60.0050.00317.93
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0040.00418.03
8.2.20.0000.00717.57
8.2.10.0040.00419.38
8.2.00.0030.00617.68
8.1.280.0150.00325.92
8.1.270.0070.00024.02
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00023.92
8.1.230.0070.00418.95
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.01017.36
8.1.190.0000.00817.43
8.1.180.0080.00018.10
8.1.170.0030.00618.65
8.1.160.0050.00322.00
8.1.150.0020.00518.64
8.1.140.0050.00217.45
8.1.130.0050.00217.46
8.1.120.0000.00717.34
8.1.110.0030.00517.41
8.1.100.0000.00717.34
8.1.90.0000.00717.46
8.1.80.0060.00317.36
8.1.70.0070.00017.31
8.1.60.0000.00917.49
8.1.50.0040.00417.55
8.1.40.0040.00417.43
8.1.30.0030.00617.60
8.1.20.0040.00417.66
8.1.10.0040.00417.52
8.1.00.0000.00817.52
8.0.300.0070.00018.77
8.0.290.0040.00417.04
8.0.280.0070.00018.45
8.0.270.0030.00517.28
8.0.260.0030.00616.82
8.0.250.0000.00716.97
8.0.240.0040.00216.97
8.0.230.0030.00317.01
8.0.220.0000.00816.96
8.0.210.0040.00416.86
8.0.200.0030.00316.80
8.0.190.0030.00616.82
8.0.180.0040.00416.81
8.0.170.0040.00416.89
8.0.160.0040.00416.86
8.0.150.0000.00816.70
8.0.140.0040.00416.78
8.0.130.0000.00613.28
8.0.120.0040.00416.76
8.0.110.0050.00216.88
8.0.100.0000.00717.00
8.0.90.0000.00816.87
8.0.80.0040.01216.88
8.0.70.0020.00516.94
8.0.60.0040.00416.88
8.0.50.0030.00516.84
8.0.30.0130.00616.95
8.0.20.0080.01117.40
8.0.10.0000.00717.03
8.0.00.0090.01116.62
7.4.330.0000.00515.05
7.4.320.0030.00316.61
7.4.300.0030.00316.61
7.4.290.0030.00316.49
7.4.280.0040.00416.46
7.4.270.0030.00316.50
7.4.260.0060.00316.48
7.4.250.0000.00816.43
7.4.240.0020.00516.56
7.4.230.0030.00316.70
7.4.220.0100.00716.51
7.4.210.0060.00916.67
7.4.200.0050.00216.71
7.4.190.0030.00516.76
7.4.160.0070.01016.42
7.4.150.0150.00617.40
7.4.140.0110.00917.86
7.4.130.0070.01116.55
7.4.120.0120.00516.51
7.4.110.0170.00016.59
7.4.100.0090.00916.50
7.4.90.0040.01816.48
7.4.80.0100.01319.39
7.4.70.0090.00916.64
7.4.60.0100.01016.34
7.4.50.0000.00816.31
7.4.40.0110.00322.77
7.4.30.0030.01416.45
7.4.00.0130.00714.96
7.3.330.0000.00513.20
7.3.320.0030.00313.20
7.3.310.0000.00716.36
7.3.300.0000.00616.34
7.3.290.0100.00716.40
7.3.280.0050.01316.38
7.3.270.0040.01417.40
7.3.260.0070.01116.50
7.3.250.0110.01116.28
7.3.240.0100.00616.43
7.3.230.0150.00416.48
7.3.210.0030.01416.31
7.3.200.0070.01019.39
7.3.190.0130.01016.44
7.3.180.0090.00916.63
7.3.170.0040.01416.39
7.3.160.0150.00016.44
7.3.120.0090.00814.72
7.3.110.0070.01314.92
7.3.100.0110.00414.89
7.3.90.0060.00315.03
7.3.80.0070.00714.95
7.3.70.0040.00714.84
7.3.60.0000.01514.92
7.3.50.0040.00414.79
7.3.40.0000.01514.69
7.3.30.0090.00314.93
7.3.20.0120.00316.79
7.3.10.0090.00616.70
7.3.00.0060.00516.70
7.2.330.0070.01016.80
7.2.320.0100.00716.75
7.2.310.0110.01416.70
7.2.300.0190.00316.46
7.2.290.0090.00816.76
7.2.250.0100.00715.30
7.2.240.0100.00615.15
7.2.230.0070.00715.29
7.2.220.0060.00915.02
7.2.210.0150.00015.02
7.2.200.0030.00715.13
7.2.190.0030.00815.21
7.2.180.0000.01415.26
7.2.170.0070.00314.88
7.2.130.0090.00317.05
7.2.120.0030.00717.10
7.2.110.0110.00417.02
7.2.100.0030.01017.05
7.2.90.0070.00716.65
7.2.80.0080.00417.16
7.2.70.0040.00917.03
7.2.60.0080.00317.04
7.2.50.0070.00717.10
7.2.40.0040.00716.88
7.2.30.0060.01016.97
7.2.20.0110.00417.02
7.2.10.0030.00916.86
7.2.00.0060.00318.29
7.1.330.0100.00315.62
7.1.320.0030.01015.93
7.1.310.0030.00915.84
7.1.300.0040.00815.71
7.1.290.0070.00715.95
7.1.280.0110.00315.55
7.1.270.0000.01815.66
7.1.260.0060.00315.96
7.1.250.0030.01015.68
7.1.100.0040.01118.16
7.1.70.0050.00217.09
7.1.60.0090.01619.29
7.1.50.0120.01216.91
7.1.00.0070.07322.36
7.0.200.0060.00316.84
7.0.140.0000.07722.12
7.0.60.0030.08721.63
7.0.50.0100.08017.84
7.0.40.0000.07320.32
7.0.30.0300.05020.07
7.0.20.0130.05320.23
7.0.10.0000.04320.20
7.0.00.0100.08320.30
5.6.280.0100.06320.87
5.6.210.0100.04720.63
5.6.200.0070.04718.13
5.6.190.0130.06720.61
5.6.180.0230.04720.48
5.6.170.0200.07720.62
5.6.160.0000.04720.50
5.6.150.0070.05318.15
5.6.140.0030.08718.28
5.6.130.0070.08018.18
5.6.120.0100.08321.11
5.6.110.0100.08321.01
5.6.100.0030.04721.02
5.6.90.0170.08321.13
5.6.80.0130.06020.38
5.5.350.0100.05020.43
5.5.340.0070.06018.09
5.5.330.0170.07020.57
5.5.320.0130.04320.27
5.5.310.0300.05020.28
5.5.300.0070.04017.95
5.5.290.0070.08717.95
5.5.280.0030.08320.91
5.5.270.0030.08720.87
5.5.260.0030.04320.96
5.5.250.0070.03720.59
5.5.240.0000.05720.19
5.4.450.0930.06019.14
5.4.440.0900.05719.48
5.4.430.0130.05019.19
5.4.420.0770.00019.55
5.4.410.0070.06018.96
5.4.400.0770.05318.71
5.4.390.0930.06318.61
5.4.380.0270.05018.50
5.4.370.0030.05318.55
5.4.360.0100.03718.75
5.4.350.0090.04712.02
5.4.340.0070.03912.01
5.4.320.0110.04312.50
5.4.310.0050.04012.50
5.4.300.0050.03812.50
5.4.290.0070.04312.50
5.4.280.0070.04512.40
5.4.270.0060.03712.40
5.4.260.0120.04712.40
5.4.250.0090.03412.40
5.4.240.0100.03912.40
5.4.230.0070.04012.39
5.4.220.0150.04512.37
5.4.210.0140.04512.37
5.4.200.0120.04812.37
5.4.190.0130.04612.36
5.4.180.0170.04212.37
5.4.170.0190.04812.38
5.4.160.0140.05312.37
5.4.150.0180.04612.37
5.4.140.0170.04412.05
5.4.130.0150.04412.04
5.4.120.0200.03912.00
5.4.110.0280.07211.99
5.4.100.0190.04411.99
5.4.90.0130.05012.00
5.4.80.0220.04111.99
5.4.70.0140.04411.99
5.4.60.0330.09011.99
5.4.50.0190.04011.98
5.4.40.0180.04111.97
5.4.30.0210.03911.97
5.4.20.0160.04411.97
5.4.10.0190.04311.97
5.4.00.0160.04111.46
5.3.290.0080.04512.80
5.3.280.0040.04812.71
5.3.270.0160.04712.73
5.3.260.0180.07712.72
5.3.250.0240.04212.72
5.3.240.0180.04612.72
5.3.230.0200.04912.71
5.3.220.0180.04612.68
5.3.210.0470.08412.68
5.3.200.0180.05612.68
5.3.190.0230.04712.68
5.3.180.0210.04212.67
5.3.170.0170.04812.67
5.3.160.0300.09712.67
5.3.150.0430.08912.68
5.3.140.0360.08912.66
5.3.130.0160.05012.66
5.3.120.0170.04912.66
5.3.110.0230.04612.66
5.3.100.0340.09212.12
5.3.90.0240.04012.08
5.3.80.0170.04612.07
5.3.70.0180.04912.08
5.3.60.0170.04512.06
5.3.50.0200.04512.00
5.3.40.0150.04912.00
5.3.30.0250.04211.97
5.3.20.0160.04511.74
5.3.10.0250.06811.71
5.3.00.0100.05111.70
5.2.170.0110.0449.20
5.2.160.0170.0359.20
5.2.150.0150.0349.20
5.2.140.0290.0869.20
5.2.130.0210.0409.16
5.2.120.0210.0359.16
5.2.110.0150.0339.16
5.2.100.0160.0319.16
5.2.90.0180.0609.16
5.2.80.0080.0389.15
5.2.70.0140.0379.15
5.2.60.0130.0379.11
5.2.50.0100.0399.08
5.2.40.0130.0379.05
5.2.30.0090.0399.02
5.2.20.0090.0389.02
5.2.10.0150.0328.93
5.2.00.0150.0328.78
5.1.60.0120.0298.07
5.1.50.0100.0318.07
5.1.40.0110.0318.06
5.1.30.0150.0298.40
5.1.20.0130.0318.43
5.1.10.0130.0318.15
5.1.00.0100.0328.15
5.0.50.0040.0306.63
5.0.40.0060.0276.49
5.0.30.0100.0366.30
5.0.20.0150.0206.28
5.0.10.0100.0266.25
5.0.00.0110.0346.25
4.4.90.0090.0174.78
4.4.80.0080.0224.76
4.4.70.0070.0234.76
4.4.60.0070.0214.75
4.4.50.0100.0194.77
4.4.40.0050.0334.71
4.4.30.0080.0184.76
4.4.20.0070.0194.85
4.4.10.0100.0174.85
4.4.00.0090.0274.76
4.3.110.0070.0184.67
4.3.100.0060.0204.67
4.3.90.0320.0534.63
4.3.80.0120.0254.58
4.3.70.0100.0144.63
4.3.60.0110.0134.63
4.3.50.0080.0174.63
4.3.40.0120.0254.54
4.3.30.0070.0193.31
4.3.20.0030.0223.31
4.3.10.0040.0193.25
4.3.00.0030.0235.87

preferences:
60.57 ms | 401 KiB | 5 Q