3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = range('a', 'g'); function permute($items, $perms = array( )) { if (empty($items)) { print '<pre>'; print_r($perms); } else { for ($i = count($items) - 1; $i >= 0; --$i) { $newitems = $items; $newperms = $perms; list($foo) = array_splice($newitems, $i, 1); array_unshift($newperms, $foo); permute($newitems, $newperms); } } } permute($items);

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.0170.00716.63
8.3.50.0220.00617.51
8.3.40.0150.00918.67
8.3.30.0160.01018.67
8.3.20.0090.00218.73
8.3.10.0070.00720.35
8.3.00.0070.00719.38
8.2.180.0200.00816.63
8.2.170.0120.00922.96
8.2.160.0100.01421.20
8.2.150.0110.00024.18
8.2.140.0120.00024.66
8.2.130.0060.00626.16
8.2.120.0060.00619.23
8.2.110.0070.00721.04
8.2.100.0070.00717.72
8.2.90.0110.00019.34
8.2.80.0000.00919.38
8.2.70.0050.00517.50
8.2.60.0050.00518.05
8.2.50.0000.00918.07
8.2.40.0090.00018.05
8.2.30.0090.00018.09
8.2.20.0090.00017.68
8.2.10.0000.00917.73
8.2.00.0030.00617.71
8.1.280.0170.00725.92
8.1.270.0110.00024.66
8.1.260.0060.00626.35
8.1.250.0040.00828.09
8.1.240.0150.00022.55
8.1.230.0070.01120.98
8.1.220.0000.00817.74
8.1.210.0060.00618.96
8.1.200.0120.00017.35
8.1.190.0000.01017.30
8.1.180.0000.01018.10
8.1.170.0000.00918.91
8.1.160.0000.00818.92
8.1.150.0000.01018.66
8.1.140.0030.00617.56
8.1.130.0060.00317.90
8.1.120.0030.00817.54
8.1.110.0050.00517.50
8.1.100.0090.00017.54
8.1.90.0090.00017.45
8.1.80.0060.00317.50
8.1.70.0000.01017.52
8.1.60.0040.00717.68
8.1.50.0050.00517.42
8.1.40.0110.00017.60
8.1.30.0000.01017.64
8.1.20.0080.00017.71
8.1.10.0050.00317.55
8.1.00.0000.01017.45
8.0.300.0040.00419.77
8.0.290.0040.00416.58
8.0.280.0040.00418.40
8.0.270.0000.00917.31
8.0.260.0080.00016.69
8.0.250.0030.00616.66
8.0.240.0000.00816.72
8.0.230.0090.00016.78
8.0.220.0060.00616.85
8.0.210.0040.00416.75
8.0.200.0040.00416.71
8.0.190.0000.00916.89
8.0.180.0040.00416.77
8.0.170.0050.00516.82
8.0.160.0060.00316.92
8.0.150.0030.00816.83
8.0.140.0030.00816.74
8.0.130.0040.00413.38
8.0.120.0100.00016.83
8.0.110.0000.00916.89
8.0.100.0070.00216.78
8.0.90.0000.00916.89
8.0.80.0170.00416.70
8.0.70.0040.00416.85
8.0.60.0000.00916.62
8.0.50.0000.00916.67
8.0.30.0440.01317.13
8.0.20.0280.01217.15
8.0.10.0040.00716.77
8.0.00.0170.02516.55
7.4.330.0030.00313.00
7.4.320.0050.00216.50
7.4.300.0050.00516.37
7.4.290.0050.00516.48
7.4.280.0050.00516.53
7.4.270.0100.00016.41
7.4.260.0040.00413.40
7.4.250.0060.00616.30
7.4.240.0080.00416.43
7.4.230.0030.00616.60
7.4.220.0180.01816.45
7.4.210.0110.01016.51
7.4.200.0040.00416.46
7.4.190.0070.00216.44
7.4.160.0250.00716.60
7.4.150.0470.01416.52
7.4.140.0200.02816.49
7.4.130.0170.01516.52
7.4.120.0220.00816.49
7.4.110.0140.01516.40
7.4.100.0230.01716.47
7.4.90.0280.02816.32
7.4.80.0620.01519.39
7.4.70.0680.02216.30
7.4.60.0480.01716.24
7.4.50.0030.01016.55
7.4.40.0100.01516.25
7.4.30.0100.01016.46
7.3.330.0030.00813.15
7.3.320.0060.00313.32
7.3.310.0050.00516.19
7.3.300.0080.00016.25
7.3.290.0110.01116.27
7.3.280.0110.01616.27
7.3.270.0170.01116.29
7.3.260.0140.01916.60
7.3.250.0280.01616.41
7.3.240.0180.00716.50
7.3.230.1420.02816.59
7.3.210.0560.01216.19
7.3.200.0300.01116.31
7.3.190.0070.02216.51
7.3.180.0160.00816.45
7.3.170.0200.02116.20
7.3.160.0140.00316.25
7.2.330.0190.01316.60
7.2.320.0130.01316.70
7.2.310.0800.03116.41
7.2.300.0150.01516.65
7.2.290.0860.03416.71
7.2.100.0640.00314.80
7.2.90.2120.00914.92
7.2.80.1510.01114.63
7.2.70.0620.01215.07
7.2.60.1270.01015.08
7.2.50.1280.01015.16
7.2.40.1180.00715.20
7.2.30.0820.01915.05
7.2.20.0270.00714.96
7.2.10.0520.00614.91
7.2.00.0540.01715.09
7.1.220.2010.00714.05
7.1.210.0000.01713.95
7.1.200.1900.00313.69
7.1.190.0680.00913.98
7.1.180.1360.01313.86
7.1.170.0430.00913.92
7.1.160.0120.00613.88
7.1.150.1140.00913.85
7.1.140.1610.01013.84
7.1.130.1040.01013.80
7.1.120.0580.01014.08
7.1.110.0750.01213.80
7.1.100.0610.01113.88
7.1.90.0630.01313.93
7.1.80.0560.00713.77
7.1.70.0520.00413.77
7.1.60.0610.01331.92
7.1.50.0460.00032.16
7.1.40.0750.01531.78
7.1.30.0350.01532.03
7.1.20.0570.01331.91
7.1.10.0770.01313.89
7.1.00.0370.00313.84
7.0.310.0940.02113.62
7.0.300.2000.01613.61
7.0.290.1510.01013.61
7.0.280.1800.01513.61
7.0.270.1060.01413.61
7.0.260.0920.02713.61
7.0.250.0750.02113.70
7.0.240.0930.02313.66
7.0.230.0780.02213.77
7.0.220.0910.02413.73
7.0.210.1150.02113.61
7.0.200.1200.02613.61
7.0.190.0960.01213.83
7.0.180.1420.01013.64
7.0.170.1130.03113.63
7.0.160.1230.02113.77
7.0.150.0980.02313.61
7.0.140.1480.01013.72
7.0.130.1140.02913.78
7.0.120.1260.02213.71
7.0.110.1090.01113.68
7.0.100.1320.01513.61
7.0.90.1190.02613.61
7.0.80.0670.01513.61
7.0.70.0880.04413.63
7.0.60.0990.00613.61
7.0.50.0570.01713.81
7.0.40.0400.01813.61
7.0.30.0920.01313.65
7.0.20.1060.02113.67
7.0.10.0430.02113.81
7.0.00.0610.01913.61
5.6.380.0430.01814.49
5.6.370.0350.01614.61
5.6.360.0520.03614.58
5.6.350.0820.02114.44
5.6.340.0530.01614.37
5.6.330.0700.05214.28
5.6.320.0520.01414.59
5.6.310.0400.02314.53
5.6.300.0580.00814.41
5.6.290.0500.01314.42
5.6.280.0470.02114.41
5.6.270.0420.02014.20
5.6.260.0460.01514.52
5.6.250.0440.02714.49
5.6.240.0540.01314.31
5.6.230.0580.02114.54
5.6.220.0600.01014.40
5.6.210.0400.02514.61
5.6.200.0310.01914.35
5.6.190.0790.02214.35
5.6.180.0410.02414.76
5.6.170.0350.03514.78
5.6.160.0540.01014.52
5.6.150.0300.02614.59
5.6.140.0640.02914.06
5.6.130.0410.01114.48
5.6.120.0420.02114.38
5.6.110.0650.01814.40
5.6.100.0680.01614.43
5.6.90.0430.02914.02
5.6.80.0460.01314.43
5.6.70.0530.02014.28
5.6.60.0530.01214.45
5.6.50.0670.01814.16
5.6.40.0330.03314.30
5.6.30.0970.02514.36
5.6.20.0470.01514.39
5.6.10.0500.01614.43
5.6.00.0530.02514.43
5.5.380.0660.02713.61
5.5.370.0380.02513.61
5.5.360.0540.02913.61
5.5.350.0450.00613.61
5.5.340.0550.01113.61
5.5.330.0360.01313.61
5.5.320.0450.01413.61
5.5.310.0470.01913.61
5.5.300.0400.02713.61
5.5.290.0680.01513.61
5.5.280.0690.02213.61
5.5.270.0460.01413.61
5.5.260.0420.01813.61
5.5.250.0400.02913.61
5.5.240.0360.01813.61
5.5.230.0490.01513.61
5.5.220.0550.01413.61
5.5.210.0440.02313.61
5.5.200.0600.03913.61
5.5.190.0540.03213.61
5.5.180.0610.01813.61
5.5.170.0340.02714.18
5.5.160.0570.01513.61
5.5.150.0370.02313.61
5.4.450.0390.02013.61
5.4.440.0490.00613.61
5.4.430.0390.01813.61
5.4.420.0450.01613.61
5.4.410.0440.01713.61
5.4.400.0250.02213.61
5.4.390.0520.02313.61
5.4.380.0320.02313.61
5.4.370.0470.00613.61
5.4.360.0450.02813.61
5.4.350.0910.03213.61
5.4.340.0500.02013.61
5.4.330.0370.02213.61
5.4.320.0410.01513.61
5.3.290.0450.01413.61

preferences:
43.95 ms | 401 KiB | 5 Q