3v4l.org

run code in 300+ PHP versions simultaneously
<?php function permutation(array $arr) { while($ele=array_shift($arr)) { $x=$ele; echo $x."\n"; foreach($arr as $rest) { $x.=" $rest"; echo $x."\n"; } } } permutation( array ( '0' => 'Lose Weight', '1' => 'Gain Muscle', '2' => 'Tone & Increase Muscle Definition', '3' => 'Increase Endurance', '4' => 'Improve Athletic Performance', ) );

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.0090.00616.50
8.3.50.0070.01321.97
8.3.40.0140.00018.84
8.3.30.0120.00318.67
8.3.20.0040.00419.23
8.3.10.0040.00421.90
8.3.00.0040.00420.75
8.2.180.0090.00916.50
8.2.170.0140.00022.96
8.2.160.0140.00020.41
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0060.00321.08
8.2.110.0060.00320.30
8.2.100.0040.00817.78
8.2.90.0040.00417.63
8.2.80.0050.00317.97
8.2.70.0050.00318.05
8.2.60.0000.00818.16
8.2.50.0040.00418.10
8.2.40.0020.00520.56
8.2.30.0000.00719.45
8.2.20.0040.00418.04
8.2.10.0030.00518.19
8.2.00.0000.00817.70
8.1.280.0000.01425.92
8.1.270.0060.00323.98
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00317.48
8.1.230.0070.00419.04
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0090.00017.35
8.1.180.0090.00018.10
8.1.170.0030.00618.78
8.1.160.0000.00718.84
8.1.150.0030.00320.26
8.1.140.0070.00019.53
8.1.130.0070.00017.65
8.1.120.0030.00317.49
8.1.110.0050.00317.49
8.1.100.0080.00017.52
8.1.90.0000.00817.46
8.1.80.0000.00817.50
8.1.70.0000.00717.50
8.1.60.0000.00817.55
8.1.50.0080.00017.52
8.1.40.0060.00317.57
8.1.30.0040.00417.68
8.1.20.0040.00417.64
8.1.10.0000.00817.48
8.1.00.0000.00717.30
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.34
8.0.270.0000.00717.32
8.0.260.0070.00017.26
8.0.250.0000.00717.00
8.0.240.0070.00016.89
8.0.230.0070.00016.87
8.0.220.0000.00816.93
8.0.210.0060.00016.89
8.0.200.0040.00416.99
8.0.190.0040.00416.91
8.0.180.0040.00416.92
8.0.170.0050.00216.94
8.0.160.0000.00716.99
8.0.150.0000.00716.89
8.0.140.0000.00716.86
8.0.130.0000.00613.39
8.0.120.0030.00616.92
8.0.110.0000.00816.77
8.0.100.0080.00016.75
8.0.90.0000.00816.73
8.0.80.0110.00716.90
8.0.70.0000.00716.69
8.0.60.0000.00716.75
8.0.50.0000.00716.84
8.0.30.0140.00916.97
8.0.20.0120.01117.40
8.0.10.0040.00416.91
8.0.00.0170.00617.01
7.4.330.0000.00515.55
7.4.320.0040.00416.55
7.4.300.0060.00016.50
7.4.290.0030.00316.52
7.4.280.0040.00416.46
7.4.270.0000.00716.44
7.4.260.0030.00316.54
7.4.250.0000.00716.37
7.4.240.0030.00316.61
7.4.230.0000.00716.68
7.4.220.0060.01916.63
7.4.210.0070.00916.56
7.4.200.0030.00516.34
7.4.160.0080.00716.55
7.4.150.0130.00417.40
7.4.140.0080.01117.86
7.4.130.0130.00716.52
7.4.120.0040.01416.57
7.4.110.0130.00616.23
7.4.100.0050.01116.46
7.4.90.0140.00416.61
7.4.80.0160.00319.39
7.4.70.0100.00616.65
7.4.60.0100.00716.43
7.4.50.0000.00916.27
7.4.40.0070.01016.29
7.4.30.0150.00616.53
7.4.00.0080.00914.70
7.3.330.0000.00513.30
7.3.320.0000.00513.16
7.3.310.0000.00716.22
7.3.300.0000.00716.41
7.3.290.0050.00316.39
7.3.280.0100.00816.35
7.3.270.0210.00017.40
7.3.260.0110.00716.45
7.3.250.0090.01016.41
7.3.240.0070.01116.57
7.3.230.0090.00916.39
7.3.210.0080.00816.33
7.3.200.0080.00816.43
7.3.190.0060.01116.46
7.3.180.0080.00816.50
7.3.170.0130.01016.63
7.3.160.0080.00816.45
7.3.120.0130.00714.59
7.3.110.0040.00814.85
7.3.100.0060.01214.66
7.3.90.0100.00715.15
7.3.80.0060.00614.80
7.3.70.0060.00614.54
7.3.60.0100.00315.04
7.3.50.0110.00314.95
7.3.40.0040.01114.89
7.3.30.0000.00814.98
7.3.20.0030.01016.56
7.3.10.0060.00616.90
7.3.00.0040.00716.46
7.2.330.0080.00816.39
7.2.320.0190.00316.82
7.2.310.0060.01116.69
7.2.300.0100.00616.51
7.2.290.0000.01516.78
7.2.250.0130.00615.35
7.2.240.0100.00715.06
7.2.230.0030.01614.81
7.2.220.0080.00814.82
7.2.210.0060.00915.01
7.2.200.0030.01315.07
7.2.190.0030.01314.86
7.2.180.0070.01114.85
7.2.170.0070.01014.89
7.2.00.0040.01119.35
7.1.330.0060.00615.86
7.1.320.0130.00316.12
7.1.310.0030.01015.91
7.1.300.0060.00615.77
7.1.290.0080.00816.04
7.1.280.0070.01116.01
7.1.270.0100.00015.52
7.1.260.0030.01315.84
7.1.70.0040.00417.24
7.1.60.0030.00717.37
7.1.00.0070.09322.44
7.0.200.0000.00816.79
7.0.130.0100.05322.09
7.0.120.0070.05722.10
7.0.110.0030.06321.98
7.0.100.0100.06321.97
7.0.90.0100.05721.98
7.0.80.0100.05322.06
7.0.70.0100.05022.07
7.0.60.0070.07322.04
7.0.50.0200.07022.07
7.0.40.0030.08022.13
7.0.30.0100.05322.11
7.0.20.0100.05722.03
7.0.10.0100.05722.11
7.0.00.0030.06722.04
5.6.280.0030.06321.11
5.6.270.0100.05320.99
5.6.260.0100.07320.80
5.6.250.0070.06020.89
5.6.240.0100.05320.80
5.6.230.0030.06320.93
5.6.220.0070.05720.86
5.6.210.0130.05321.02
5.6.200.0100.08020.84
5.6.190.0100.06320.98
5.6.180.0100.06720.82
5.6.170.0170.07321.09
5.6.160.0130.06721.00
5.6.150.0170.07720.86
5.6.140.0130.06320.99
5.6.130.0130.05321.01
5.6.120.0000.06720.94
5.6.110.0070.06720.86
5.6.100.0100.05720.96
5.6.90.0130.05320.99
5.6.80.0200.04320.32
5.6.70.0100.05020.24
5.6.60.0030.06020.36
5.6.50.0000.06020.33
5.6.40.0070.05720.29
5.6.30.0130.05720.43
5.6.20.0100.06320.11
5.6.10.0070.05720.21
5.6.00.0070.07020.09

preferences:
59.88 ms | 401 KiB | 5 Q