3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = range('a', 'g'); function permute($items, $perms = array( )) { if (empty($items)) { return($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.40.0170.01018.84
8.3.30.0120.00618.54
8.3.20.0040.00718.60
8.3.10.0070.00320.48
8.3.00.0030.00621.91
8.2.170.0070.01122.96
8.2.160.0000.01820.53
8.2.150.0030.00724.18
8.2.140.0080.00324.66
8.2.130.0000.01126.16
8.2.120.0070.00319.28
8.2.110.0040.01122.11
8.2.100.0100.01017.59
8.2.90.0000.01319.08
8.2.80.0030.00917.97
8.2.70.0000.01317.63
8.2.60.0040.01117.93
8.2.50.0000.01218.07
8.2.40.0070.00718.22
8.2.30.0080.00419.90
8.2.20.0000.01317.66
8.2.10.0000.01117.78
8.2.00.0040.00817.82
8.1.270.0110.00823.99
8.1.260.0070.00426.35
8.1.250.0030.00728.09
8.1.240.0000.01420.87
8.1.230.0030.01220.68
8.1.220.0000.01218.77
8.1.210.0040.00818.77
8.1.200.0000.01417.35
8.1.190.0000.01217.40
8.1.180.0060.00618.10
8.1.170.0000.01218.46
8.1.160.0030.00918.96
8.1.150.0000.01118.58
8.1.140.0030.00917.32
8.1.130.0060.00617.87
8.1.120.0030.00817.51
8.1.110.0060.00617.35
8.1.100.0060.00617.47
8.1.90.0040.00817.48
8.1.80.0030.00817.46
8.1.70.0040.00717.36
8.1.60.0070.00717.48
8.1.50.0030.00917.36
8.1.40.0030.01017.50
8.1.30.0060.00617.56
8.1.20.0070.00717.55
8.1.10.0000.01217.48
8.1.00.0030.00917.55
8.0.300.0030.00919.82
8.0.290.0040.00717.16
8.0.280.0070.00418.40
8.0.270.0030.00917.19
8.0.260.0030.00816.70
8.0.250.0090.00616.79
8.0.240.0030.00916.90
8.0.230.0000.01116.87
8.0.220.0030.00816.86
8.0.210.0000.01116.85
8.0.200.0050.00516.78
8.0.190.0060.00616.86
8.0.180.0030.00916.83
8.0.170.0040.00816.80
8.0.160.0060.00616.91
8.0.150.0000.01316.74
8.0.140.0060.00616.84
8.0.130.0030.01013.31
8.0.120.0000.01216.74
8.0.110.0060.00616.84
8.0.100.0030.00916.79
8.0.90.0040.00816.90
8.0.80.0070.01416.90
8.0.70.0060.00616.89
8.0.60.0000.01216.74
8.0.50.0000.01316.89
8.0.30.0130.01317.16
8.0.20.0120.01317.40
8.0.10.0000.01117.02
8.0.00.0120.01216.67
7.4.330.0040.00414.65
7.4.320.0000.01116.49
7.4.300.0000.01016.63
7.4.290.0060.00616.52
7.4.280.0100.00316.59
7.4.270.0000.01116.61
7.4.260.0030.00713.33
7.4.250.0040.00816.61
7.4.240.0060.00616.61
7.4.230.0030.00816.68
7.4.220.0120.01216.48
7.4.210.0110.01116.56
7.4.200.0000.01116.40
7.4.190.0060.00616.75
7.4.160.0120.01616.34
7.4.150.0070.01717.40
7.4.140.0100.01417.86
7.4.130.0070.01516.51
7.4.120.0070.01616.44
7.4.110.0090.02416.37
7.4.100.0100.01316.55
7.4.90.0060.02016.56
7.4.80.0150.00719.37
7.4.70.0170.02016.55
7.4.60.0060.01616.26
7.4.50.0000.01016.34
7.4.40.0030.02022.27
7.4.30.0160.00816.59
7.4.00.0070.01414.92
7.3.330.0000.01013.32
7.3.320.0000.01013.22
7.3.310.0000.01116.46
7.3.300.0040.00716.35
7.3.290.0090.01216.34
7.3.280.0040.02116.37
7.3.270.0040.01917.40
7.3.260.0080.01518.24
7.3.250.0060.02216.48
7.3.240.0040.01916.39
7.3.230.0140.01216.43
7.3.210.0130.01016.49
7.3.200.0180.01619.39
7.3.190.0120.00916.44
7.3.180.0100.01316.42
7.3.170.0130.01216.47
7.3.160.0060.01616.41
7.3.120.0070.01314.98
7.3.110.0090.01215.05
7.3.100.0090.01214.95
7.3.90.0100.01014.58
7.3.80.0030.01415.07
7.3.70.0030.02014.91
7.3.60.0100.01014.98
7.3.50.0080.01114.78
7.3.40.0090.00914.99
7.3.30.0110.01115.00
7.3.20.0070.01416.54
7.3.10.0110.01116.41
7.3.00.0060.01516.35
7.2.330.0060.01816.70
7.2.320.0030.02016.48
7.2.310.0030.02216.74
7.2.300.0000.02516.50
7.2.290.0170.01716.49
7.2.240.0100.01014.84
7.2.230.0140.01115.08
7.2.220.0040.01515.26
7.2.210.0070.01414.89
7.2.200.0000.02415.16
7.2.190.0090.00914.97
7.2.180.0070.01315.12
7.2.170.0030.01915.14
7.2.160.0100.01014.99
7.2.150.0070.01516.76
7.2.140.0030.01716.77
7.2.130.0030.02016.98
7.2.120.0060.01817.00
7.2.110.0030.01716.82
7.2.100.0000.02316.94
7.2.90.0070.01717.04
7.2.80.0040.01516.97
7.2.70.0040.01816.96
7.2.60.0070.01416.99
7.2.50.0100.01316.93
7.2.40.0100.01317.04
7.2.30.0030.02016.92
7.2.20.0090.01217.04
7.2.10.0060.01617.00
7.2.00.0030.01718.20
7.1.330.0030.02615.69
7.1.320.0070.02015.74
7.1.310.0100.01716.04
7.1.300.0030.01915.82
7.1.290.0000.02915.63
7.1.280.0030.02015.59
7.1.270.0030.02315.61
7.1.260.0070.01815.84
7.1.250.0070.02015.87
7.1.200.0000.02315.76
7.1.100.0000.01918.04
7.1.70.0030.01217.18
7.1.60.0120.02519.40
7.1.50.0130.02316.86
7.1.00.0070.05322.45
7.0.200.0160.01014.94
7.0.140.0030.08322.09
7.0.60.0030.09019.78
7.0.50.0100.08717.83
7.0.40.0030.07317.73
7.0.30.0170.07717.84
7.0.20.0070.07717.84
7.0.10.0100.08317.71
7.0.00.0100.06717.86
5.6.280.0070.09321.06
5.6.210.0130.06320.53
5.6.200.0100.09718.24
5.6.190.0070.10018.29
5.6.180.0070.09718.12
5.6.170.0130.09718.25
5.6.160.0030.05718.23
5.6.150.0030.10718.25
5.6.140.0070.08318.24
5.6.130.0130.09718.14
5.6.120.0000.06018.12
5.6.110.0030.06018.11
5.6.100.0100.09318.19
5.6.90.0030.08718.13
5.6.80.0000.09317.60
5.6.70.0070.09017.54
5.6.60.0070.09017.57
5.6.50.0070.09717.54
5.6.40.0100.09317.51
5.6.30.0070.09017.64
5.6.20.0070.10017.57
5.6.10.0070.07317.52
5.6.00.0000.06317.63
5.5.350.0100.10320.39
5.5.340.0030.06718.05
5.5.330.0100.10317.95
5.5.320.0100.09717.96
5.5.310.0070.06018.08
5.5.300.0100.09017.98
5.5.290.0070.06317.97
5.5.280.0100.10317.95
5.5.270.0070.06017.91
5.5.260.0030.05718.04
5.5.250.0130.09717.79
5.5.240.0030.10317.44
5.5.230.0070.10017.46
5.5.220.0030.07717.35
5.5.210.0100.06317.37
5.5.200.0070.09717.44
5.5.190.0070.08317.34
5.5.180.0100.08317.30
5.5.160.0000.06717.38
5.5.150.0170.08717.41
5.5.140.0100.09717.40
5.5.130.0070.08717.42
5.5.120.0030.10317.29
5.5.110.0200.09017.32
5.5.100.0070.10317.18
5.5.90.0130.09317.17
5.5.80.0030.07317.34
5.5.70.0070.08017.20
5.5.60.0070.08317.29
5.5.50.0070.07717.26
5.5.40.0100.09317.27
5.5.30.0030.05717.29
5.5.20.0100.09317.30
5.5.10.0000.10317.32
5.5.00.0070.09317.15
5.4.450.0030.05719.46
5.4.440.0030.10019.45
5.4.430.0100.06719.18
5.4.420.0000.05719.45
5.4.410.0100.09019.32
5.4.400.0070.05719.13
5.4.390.0170.08719.05
5.4.380.0070.09719.01
5.4.370.0030.10018.95
5.4.360.0030.06019.04
5.4.350.0070.06019.00
5.4.340.0070.05019.27
5.4.320.0030.07319.13
5.4.310.0100.05319.04
5.4.300.0070.06019.13
5.4.290.0030.08019.09
5.4.280.0100.10719.04
5.4.270.0130.07019.01
5.4.260.0100.09319.05
5.4.250.0130.08319.09
5.4.240.0100.09319.07
5.4.230.0130.08019.04
5.4.220.0070.09319.04
5.4.210.0100.07319.04
5.4.200.0030.05319.00
5.4.190.0130.09719.04
5.4.180.0030.07719.03
5.4.170.0170.09019.00
5.4.160.0000.05719.08
5.4.150.0070.05019.10
5.4.140.0100.09016.32
5.4.130.0030.05016.57
5.4.120.0000.05316.38
5.4.110.0000.05316.43
5.4.100.0030.04716.41
5.4.90.0030.04716.45
5.4.80.0070.04316.41
5.4.70.0000.05316.22
5.4.60.0030.06016.39
5.4.50.0000.05016.38
5.4.40.0200.04316.43
5.4.30.0100.04016.20
5.4.20.0070.06016.45
5.4.10.0000.05016.32
5.4.00.0000.05715.73
5.3.290.0070.10314.63
5.3.280.0100.10714.67
5.3.270.0000.10714.46
5.3.260.0070.05714.46
5.3.250.0070.05314.65
5.3.240.0000.06014.57
5.3.230.0030.05314.64
5.3.220.0130.04314.64
5.3.210.0030.05714.62
5.3.200.0000.06014.64
5.3.190.0070.05014.64
5.3.180.0030.05314.67
5.3.170.0030.05314.42
5.3.160.0000.05714.42
5.3.150.0070.05014.58
5.3.140.0030.05314.60
5.3.130.0030.05314.60
5.3.120.0030.05314.51
5.3.110.0030.06314.58
5.3.100.0030.05714.08
5.3.90.0030.05314.01
5.3.80.0000.05714.02
5.3.70.0030.05313.86
5.3.60.0030.05714.02
5.3.50.0030.05313.79
5.3.40.0100.05713.99
5.3.30.0070.04714.01
5.3.20.0000.06013.79
5.3.10.0000.07013.86
5.3.00.0000.05313.64
5.2.170.0070.04311.00
5.2.160.0030.04711.22
5.2.150.0030.05011.17
5.2.140.0000.05011.05
5.2.130.0030.04711.15
5.2.120.0000.05011.14
5.2.110.0030.04711.32
5.2.100.0030.04711.20
5.2.90.0000.05311.18
5.2.80.0000.05010.99
5.2.70.0000.05010.94
5.2.60.0100.07011.09
5.2.50.0030.05011.04
5.2.40.0170.05311.00
5.2.30.0070.09310.98
5.2.20.0030.08311.00
5.2.10.0070.05010.89
5.2.00.0030.08310.77
5.1.60.0030.0879.97
5.1.50.0030.0909.84
5.1.40.0100.08310.06
5.1.30.0100.08310.40
5.1.20.0030.09310.33
5.1.10.0000.09310.04
5.1.00.0030.08310.07
5.0.50.0070.0908.60
5.0.40.0030.0908.40
5.0.30.0000.1178.30
5.0.20.0000.0938.21
5.0.10.0070.0678.15
5.0.00.0030.1078.14
4.4.90.0170.0377.80
4.4.80.0030.0807.80
4.4.70.0000.0537.80
4.4.60.0100.0677.80
4.4.50.0030.0577.80
4.4.40.0000.1037.80
4.4.30.0000.0837.80
4.4.20.0070.0707.80
4.4.10.0000.0537.80
4.4.00.0000.0937.80
4.3.110.0070.0837.80
4.3.100.0070.0807.80
4.3.90.0000.0837.80
4.3.80.0030.0537.80
4.3.70.0100.0607.80
4.3.60.0030.0837.80
4.3.50.0000.0937.80
4.3.40.0000.0977.80
4.3.30.0000.0907.80
4.3.20.0000.0877.80
4.3.10.0000.0737.80
4.3.00.0070.0537.80

preferences:
54.15 ms | 400 KiB | 5 Q