3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "LNGEDNA"; $count = pow(strlen($string), strlen($string)) - 1; $arr = str_split($string); $poss = ""; for($i = 0; $i < $count; $i++) { for($j = $i; $j < count($arr); $j++) { $poss .= $arr[$i]; } if($i > 0) { for($k = 0; $j < $j; $j++) { $poss .= $arr[$k]; } } $poss .= "\n";"" }

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)
5.6.80.0030.05320.45
5.5.240.0100.06720.29
5.4.400.0270.04718.84
5.4.390.0130.06318.53
5.4.380.0170.06318.76
5.4.370.0230.05018.58
5.4.360.0330.03718.45
5.4.350.0370.03718.70
5.4.340.0170.06018.79
5.4.320.0200.05318.71
5.4.310.0170.05718.47
5.4.300.0230.06318.77
5.4.290.0270.04718.72
5.4.280.0200.05318.46
5.4.270.0200.05318.85
5.4.260.0370.04018.77
5.4.250.0200.05718.60
5.4.240.0200.06718.50
5.4.230.0230.05318.72
5.4.220.0170.06318.71
5.4.210.0270.05318.70
5.4.200.0270.04716.74
5.4.190.0200.06718.68
5.4.180.0200.06018.77
5.4.170.0330.06718.56
5.4.160.0200.07718.45
5.4.150.0270.04718.50
5.4.140.0270.06016.22
5.4.130.0100.06716.29
5.4.120.0200.05716.34
5.4.110.0130.06016.29
5.4.100.0230.05016.44
5.4.90.0230.04716.32
5.4.80.0200.04716.30
5.4.70.0270.05016.23
5.4.60.0270.04316.23
5.4.50.0170.05016.18
5.4.40.0230.04316.20
5.4.30.0070.05716.22
5.4.20.0130.05316.19
5.4.10.0200.04716.27
5.4.00.0170.05315.77
5.3.290.0100.06314.57
5.3.280.0170.05714.53
5.3.270.0170.05714.54
5.3.260.0170.05714.70
5.3.250.0200.05714.54
5.3.240.0270.06714.54
5.3.230.0270.05014.50
5.3.220.0130.06714.46
5.3.210.0230.05314.52
5.3.200.0300.05314.57
5.3.190.0130.06714.57
5.3.180.0100.06014.50
5.3.170.0300.06714.50
5.3.160.0230.07314.62
5.3.150.0400.07014.59
5.3.140.0300.06314.47
5.3.130.0370.06314.53
5.3.120.4370.06314.64
5.3.110.0430.05714.45
5.3.100.0470.05013.97
5.3.90.0330.06314.00
5.3.80.0330.05713.96
5.3.70.0230.05713.96
5.3.60.0370.06313.95
5.3.50.0730.07014.02
5.3.40.1600.06313.88
5.3.30.0200.07013.82
5.3.20.0200.07313.79
5.3.10.0270.07013.75
5.3.00.0300.07013.67
5.2.170.0230.03711.12
5.2.160.0200.04011.19
5.2.150.0230.04311.19
5.2.140.0170.05011.07
5.2.130.0100.05011.15
5.2.120.0070.05311.04
5.2.110.0170.04011.25
5.2.100.0230.03711.02
5.2.90.0230.03711.07
5.2.80.0170.04011.07
5.2.70.0130.04711.14
5.2.60.0100.04711.10
5.2.50.0200.03711.08
5.2.40.0070.04710.91
5.2.30.0130.04710.93
5.2.20.0100.05010.98
5.2.10.0130.04310.90
5.2.00.0070.05010.71
5.1.60.0100.0409.95
5.1.50.0130.0379.97
5.1.40.0170.03010.09
5.1.30.0130.03710.30
5.1.20.0170.05010.43
5.1.10.0130.05010.05
5.1.00.0200.04310.09
5.0.50.0100.0378.57
5.0.40.0100.0408.43
5.0.30.0100.0578.34
5.0.20.0130.0308.16
5.0.10.0100.0308.19
5.0.00.0070.0438.34
4.4.90.0100.0205.89
4.4.80.0170.0135.92
4.4.70.0070.0235.90
4.4.60.0130.0175.89
4.4.50.0100.0205.89
4.4.40.0070.0375.94
4.4.30.0100.0205.87
4.4.20.0100.0235.98
4.4.10.0070.0235.95
4.4.00.0100.0375.97
4.3.110.0070.0335.77
4.3.100.0130.0205.85
4.3.90.0130.0175.77
4.3.80.0130.0335.90
4.3.70.0130.0205.81
4.3.60.0130.0275.91
4.3.50.0070.0335.85
4.3.40.0070.0475.73
4.3.30.0000.0334.61
4.3.20.0070.0304.55
4.3.10.0070.0304.55
4.3.00.0030.0206.89

preferences:
144.02 ms | 1394 KiB | 7 Q