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' => 'Cardio', '1' => 'Strength Training', '2' => 'Dancing', '3' => 'Martial Arts', '4' => 'Low Impact', '5' => 'Yoga', ) );

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.0080.00816.49
8.3.60.0090.00616.50
8.3.50.0110.01022.91
8.3.40.0130.00318.59
8.3.30.0160.00018.70
8.3.20.0080.00019.21
8.3.10.0050.00321.90
8.3.00.0040.00420.77
8.2.190.0090.00916.63
8.2.180.0140.00416.38
8.2.170.0110.01122.96
8.2.160.0140.00020.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0020.00521.00
8.2.120.0100.00326.35
8.2.110.0100.00020.42
8.2.100.0100.00317.91
8.2.90.0080.00017.75
8.2.80.0060.00317.97
8.2.70.0040.00417.93
8.2.60.0080.00018.28
8.2.50.0040.00418.10
8.2.40.0070.00020.63
8.2.30.0000.00719.32
8.2.20.0070.00018.22
8.2.10.0050.00318.12
8.2.00.0040.00417.73
8.1.280.0110.01125.92
8.1.270.0040.00422.10
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0000.00921.99
8.1.230.0060.00624.01
8.1.220.0000.00917.76
8.1.210.0000.00818.77
8.1.200.0090.00017.22
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0080.00018.91
8.1.160.0030.00518.80
8.1.150.0040.00421.92
8.1.140.0050.00319.57
8.1.130.0070.00017.66
8.1.120.0040.00417.52
8.1.110.0060.00317.38
8.1.100.0050.00317.36
8.1.90.0070.00017.34
8.1.80.0060.00317.35
8.1.70.0000.00717.43
8.1.60.0040.00417.61
8.1.50.0060.00317.58
8.1.40.0040.00417.47
8.1.30.0000.00917.58
8.1.20.0040.00417.64
8.1.10.0050.00317.52
8.1.00.0040.00417.45
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.40
8.0.270.0040.00417.26
8.0.260.0030.00317.26
8.0.250.0030.00316.95
8.0.240.0000.00716.84
8.0.230.0030.00516.96
8.0.220.0030.00316.91
8.0.210.0000.00716.77
8.0.200.0090.00016.95
8.0.190.0070.00016.94
8.0.180.0030.00316.98
8.0.170.0050.00216.82
8.0.160.0030.00416.91
8.0.150.0030.00316.74
8.0.140.0030.00316.91
8.0.130.0030.00313.28
8.0.120.0040.00416.86
8.0.110.0040.00416.82
8.0.100.0090.00016.85
8.0.90.0000.00716.77
8.0.80.0060.00916.95
8.0.70.0040.00416.89
8.0.60.0030.00516.77
8.0.50.0000.00816.76
8.0.30.0110.00817.08
8.0.20.0090.01017.40
8.0.10.0020.00516.89
8.0.00.0080.01516.61
7.4.330.0000.00515.55
7.4.320.0030.00316.43
7.4.300.0040.00416.50
7.4.290.0040.00416.51
7.4.280.0050.00216.50
7.4.270.0000.00716.61
7.4.260.0000.00716.60
7.4.250.0000.00716.59
7.4.240.0030.00316.52
7.4.230.0070.00016.34
7.4.220.0130.00516.43
7.4.210.0130.00616.60
7.4.200.0070.00016.63
7.4.160.0060.01016.44
7.4.150.0070.01017.40
7.4.140.0090.00817.86
7.4.130.0120.00516.57
7.4.120.0040.01416.46
7.4.110.0100.01316.49
7.4.100.0090.00916.33
7.4.90.0170.00616.48
7.4.80.0120.00619.39
7.4.70.0030.01316.38
7.4.60.0100.00716.57
7.4.50.0120.00616.67
7.4.40.0160.00716.41
7.4.30.0100.01016.61
7.4.00.0060.00914.87
7.3.330.0030.00313.20
7.3.320.0000.00513.23
7.3.310.0000.00716.39
7.3.300.0000.00716.42
7.3.290.0030.00516.43
7.3.280.0090.00916.40
7.3.270.0030.01317.40
7.3.260.0130.00716.48
7.3.250.0090.00716.43
7.3.240.0130.01016.38
7.3.230.0090.00916.50
7.3.210.0110.00716.67
7.3.200.0070.01016.21
7.3.190.0120.00316.48
7.3.180.0100.01016.63
7.3.170.0030.01316.46
7.3.160.0070.01016.66
7.2.330.0090.00916.62
7.2.320.0120.01316.57
7.2.310.0170.00016.46
7.2.300.0150.00916.76
7.2.290.0100.00616.47
7.2.60.0050.00517.01
7.2.50.0070.00717.05
7.2.00.0100.01019.22
7.1.200.0030.00715.91
7.1.70.0090.00016.82
7.1.60.0030.01417.25
7.1.00.0070.09322.51
7.0.200.0060.01116.54
7.0.130.0100.06322.04
7.0.120.0170.05322.06
7.0.110.0100.06321.98
7.0.100.0100.06322.06
7.0.90.0070.08022.03
7.0.80.0030.07322.11
7.0.70.0170.07021.99
7.0.60.0030.06022.14
7.0.50.0100.07021.99
7.0.40.0170.07022.11
7.0.30.0100.05722.16
7.0.20.0070.05321.98
7.0.10.0070.05722.07
7.0.00.0130.05022.14
5.6.280.0070.07020.88
5.6.270.0200.07320.86
5.6.260.0170.05320.99
5.6.250.0170.06720.86
5.6.240.0100.06321.07
5.6.230.0070.06020.80
5.6.220.0000.06320.92
5.6.210.0130.06020.86
5.6.200.0070.05721.09
5.6.190.0070.08320.84
5.6.180.0070.07020.84
5.6.170.0170.05720.87
5.6.160.0100.05020.84
5.6.150.0070.05320.95
5.6.140.0100.05020.83
5.6.130.0070.05720.87
5.6.120.0030.06020.80
5.6.110.0030.07720.74
5.6.100.0070.05721.01
5.6.90.0000.07320.93
5.6.80.0070.05320.39
5.6.70.0030.05720.22
5.6.60.0170.04320.30
5.6.50.0100.06320.36
5.6.40.0100.05020.29
5.6.30.0100.06020.38
5.6.20.0030.06320.15
5.6.10.0100.07020.36
5.6.00.0100.05720.22

preferences:
53.76 ms | 401 KiB | 5 Q