3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ps($set){ $subset = [[]]; foreach($set as $element){ foreach($subset as $combination){ $subset[] = array_merge([$element], $combination); } } sort($subset); return $subset; } $interfaces = explode(",", "Tosser,Wanker,Slag,Arsehole,Muppet,Pillock,KnobHead,BellEnd,Knob"); foreach($interfaces as $interface){ echo "interface " . $interface . "{}\n"; } echo "\n\n"; foreach(ps($interfaces) as $c){ echo "interface " . implode("", $c) . " extends " . implode(", ", $c) . "{}\n"; }

Abusive script

This script was stopped while abusing our resources

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.110.0030.00520.94
8.3.100.0060.00324.06
8.3.90.0050.00326.77
8.3.80.0070.00418.14
8.3.70.0230.00016.75
8.3.60.0100.00718.40
8.3.50.0250.01121.27
8.3.40.0160.00018.98
8.3.30.0180.00018.92
8.3.20.0000.00919.19
8.3.10.0080.00022.06
8.3.00.0040.00420.73
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0120.00626.77
8.2.200.0030.00716.88
8.2.190.0070.01016.94
8.2.180.0220.00318.11
8.2.170.0070.01719.21
8.2.160.0150.00022.96
8.2.150.0060.00325.66
8.2.140.0060.00624.66
8.2.130.0080.00019.39
8.2.120.0090.00026.35
8.2.110.0000.01120.67
8.2.100.0070.00718.03
8.2.90.0060.00319.42
8.2.80.0030.00617.97
8.2.70.0060.00317.75
8.2.60.0050.00818.05
8.2.50.0090.00018.10
8.2.40.0090.00320.77
8.2.30.0000.00919.35
8.2.20.0040.00418.20
8.2.10.0030.00618.26
8.2.00.0040.00417.84
8.1.290.0060.00330.84
8.1.280.0130.01025.92
8.1.270.0040.00423.78
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0030.00623.83
8.1.230.0120.00018.14
8.1.220.0030.00618.03
8.1.210.0000.00818.77
8.1.200.0030.00717.60
8.1.190.0070.00317.47
8.1.180.0070.00318.10
8.1.170.0030.00619.15
8.1.160.0060.00319.04
8.1.150.0030.00520.41
8.1.140.0030.00519.68
8.1.130.0000.00720.75
8.1.120.0000.00917.71
8.1.110.0040.00417.56
8.1.100.0040.00417.58
8.1.90.0030.00617.69
8.1.80.0040.00417.74
8.1.70.0040.00417.62
8.1.60.0090.00017.82
8.1.50.0040.00417.80
8.1.40.0050.00517.63
8.1.30.0000.00817.91
8.1.20.0000.00817.90
8.1.10.0000.00917.78
8.1.00.0000.00817.68
8.0.300.0040.00418.77
8.0.290.0000.00817.00
8.0.280.0080.00018.80
8.0.270.0040.00417.00
8.0.260.0000.00717.49
8.0.250.0040.00417.14
8.0.240.0040.00417.16
8.0.230.0080.00017.20
8.0.220.0070.00017.05
8.0.210.0000.00717.01
8.0.200.0070.00017.14
8.0.190.0000.00917.20
8.0.180.0030.00617.22
8.0.170.0000.00817.16
8.0.160.0080.00017.17
8.0.150.0030.00517.02
8.0.140.0000.00817.00
8.0.130.0050.00213.57
8.0.120.0040.00417.01
8.0.110.0000.00817.00
8.0.100.0040.00417.07
8.0.90.0040.00417.07
8.0.80.0070.01617.16
8.0.70.0030.00617.23
8.0.60.0000.00817.14
8.0.50.0050.00317.01
8.0.30.0170.00317.20
8.0.20.0120.01317.53
8.0.10.0040.00417.20
8.0.00.0150.00617.06
7.4.330.0030.00315.55
7.4.320.0000.00816.85
7.4.300.0000.00716.65
7.4.290.0050.00316.84
7.4.280.0030.00616.73
7.4.270.0050.00316.81
7.4.260.0030.00716.74
7.4.250.0000.00716.71
7.4.240.0060.00616.73
7.4.230.0000.00816.84
7.4.220.0220.00616.89
7.4.210.0080.00916.69
7.4.200.0040.00416.71
7.4.160.0100.01416.72
7.4.150.0190.00417.40
7.4.140.0160.00917.86
7.4.130.0090.01416.70
7.4.120.0120.01116.75
7.4.110.0080.01216.63
7.4.100.0200.00316.81
7.4.90.0070.01416.72
7.4.80.0150.00619.39
7.4.70.0100.01016.66
7.4.60.0120.00616.77
7.4.50.0030.01016.64
7.4.40.0090.01016.68
7.4.30.0050.01416.93
7.4.00.0060.01315.10
7.3.330.0030.00313.35
7.3.320.0030.00313.54
7.3.310.0040.00416.34
7.3.300.0070.00016.32
7.3.290.0050.00216.48
7.3.280.0100.01116.56
7.3.270.0130.00717.40
7.3.260.0140.00916.65
7.3.250.0140.00916.52
7.3.240.0160.00816.56
7.3.230.0110.01116.56
7.3.210.0140.00816.76
7.3.200.0100.01016.54
7.3.190.0070.01116.85
7.3.180.0040.01516.55
7.3.170.0150.00816.59
7.3.160.0180.00916.72
7.2.330.0070.01516.91
7.2.320.0140.00716.93
7.2.310.0100.01016.95
7.2.300.0100.01016.69
7.2.290.0060.01516.93
7.2.60.0030.01016.87
7.1.200.0030.01315.97
7.1.70.0050.00317.21
7.1.60.0080.00316.89
7.1.00.1170.06320.94
7.0.200.0030.00716.71
7.0.140.2200.08020.48
7.0.130.1170.05320.49
7.0.120.1230.05020.52
7.0.110.1100.06320.59
7.0.100.1030.06320.54
7.0.90.1330.08020.61
7.0.80.1300.05720.41
7.0.70.1570.05720.43
7.0.60.1400.06320.44
7.0.50.1270.05320.42
7.0.40.1270.05320.37
7.0.30.1430.05320.54
7.0.20.2070.07320.38
7.0.10.1330.05320.59
7.0.00.1970.05720.37
5.6.290.0100.07321.12
5.6.280.0100.05721.17
5.6.270.0170.06721.39
5.6.260.0070.06321.21
5.6.250.0100.06021.34
5.6.240.0300.07721.45
5.6.230.0000.07321.28
5.6.220.0130.05321.45
5.6.210.0100.07021.27
5.6.200.0070.07021.16
5.6.190.0070.06321.18
5.6.180.0070.07021.38
5.6.170.0130.06321.08
5.6.160.0130.06321.36
5.6.150.0130.07321.18
5.6.140.0170.05721.25
5.6.130.0070.06021.19
5.6.120.0130.06321.18
5.6.110.0230.05321.11
5.6.100.0100.06021.34
5.6.90.0200.05321.34
5.6.80.0230.04720.54
5.6.70.0170.05320.71
5.6.60.0100.07020.54
5.6.50.0070.06020.58
5.6.40.0200.05020.50
5.6.30.0170.05720.65
5.6.20.0170.05320.70
5.6.10.0070.06020.71
5.6.00.0130.05320.46

preferences:
95.41 ms | 8506 KiB | 5 Q