3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 32; $alpa = "abcdefghijklmnopqrstuvwxyz";$alpa.=strtoupper($alpa); $alpa=str_split($alpa); $pass=""; foreach($alpa as $a){ $pass.=str_repeat($a,floor(sqrt(max(rand(0,22)-5,0)))); } $pass = str_split($pass);shuffle($pass);$pass=implode($pass); $r = rand(0,strlen($pass)-$length); echo substr($pass,$r,$length);

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)
7.2.00.0070.00719.12
7.1.70.0000.00916.92
7.1.60.0070.01819.70
7.1.50.0130.01016.80
7.1.00.0030.09022.57
7.0.200.0000.00716.70
7.0.140.0030.07321.95
7.0.100.0000.04319.97
7.0.90.0030.04019.95
7.0.80.0200.03019.94
7.0.70.0000.04319.91
7.0.60.0030.04019.92
7.0.50.0100.04720.39
7.0.40.0100.08320.18
7.0.30.0070.08020.09
7.0.20.0030.05320.00
7.0.10.0230.06720.02
7.0.00.0070.07320.14
5.6.280.0070.07021.06
5.6.250.0000.04020.49
5.6.240.0030.04720.54
5.6.230.0070.04020.65
5.6.220.0030.04020.54
5.6.210.0000.05320.61
5.6.200.0070.08321.07
5.6.190.0070.07720.94
5.6.180.0070.08321.02
5.6.170.0100.08021.05
5.6.160.0070.07321.03
5.6.150.0130.07721.03
5.6.140.0100.07720.94
5.6.130.0030.07321.18
5.6.120.0100.07721.08
5.6.110.0000.08721.16
5.6.100.0070.06321.07
5.6.90.0070.08021.12
5.6.80.0030.03720.41
5.6.70.0130.07020.31
5.6.60.0070.07720.45
5.6.50.0100.07720.45
5.6.40.0170.07720.53
5.6.30.0100.06020.32
5.6.20.0070.06720.30
5.6.10.0130.05320.37
5.6.00.0100.07020.45
5.5.380.0070.08320.39
5.5.370.0100.03320.50
5.5.360.0030.04020.37
5.5.350.0030.04320.39
5.5.340.0100.07020.77
5.5.330.0170.04720.77
5.5.320.0030.08720.83
5.5.310.0070.07720.73
5.5.300.0170.08020.77
5.5.290.0030.05020.88
5.5.280.0070.08020.89
5.5.270.0100.08320.85
5.5.260.0030.08720.86
5.5.250.0070.07020.61
5.5.240.0070.07320.26
5.5.230.0070.07720.21
5.5.220.0100.05720.30
5.5.210.0100.07020.31
5.5.200.0030.08020.27
5.5.190.0130.07719.99
5.5.180.0100.04020.14
5.5.160.0130.06720.19
5.5.150.0000.06320.23
5.5.140.0030.07720.23
5.5.130.0030.05320.08
5.5.120.0100.07720.20
5.5.110.0070.07720.08
5.5.100.0030.07320.07
5.5.90.0100.07020.12
5.5.80.0170.07020.16
5.5.70.0000.04320.16
5.5.60.0100.07319.94
5.5.50.0070.06320.09
5.5.40.0000.07020.01
5.5.30.0100.04320.05
5.5.20.0100.07020.13
5.5.10.0070.07320.08
5.5.00.0130.07020.07
5.4.450.0100.08019.15
5.4.440.0100.04719.40
5.4.430.0030.04719.36
5.4.420.0030.06719.46
5.4.410.0030.07719.31
5.4.400.0030.03718.81
5.4.390.0070.06319.00
5.4.380.0130.06719.04
5.4.370.0100.07318.95
5.4.360.0100.04318.84
5.4.350.0100.07318.96
5.4.340.0100.05318.90
5.4.320.0030.07719.14
5.4.310.0100.07019.12
5.4.300.0030.06019.01
5.4.290.0170.06318.94
5.4.280.0030.08018.90
5.4.270.0070.08019.06
5.4.260.0030.07319.15
5.4.250.0000.05019.06
5.4.240.0070.06018.96
5.4.230.0130.05718.80
5.4.220.0000.08319.03
5.4.210.0070.07719.23
5.4.200.0070.07718.80
5.4.190.0070.07319.22
5.4.180.0130.07019.11
5.4.170.0030.07318.88
5.4.160.0030.07019.02
5.4.150.0130.06019.11
5.4.140.0070.07016.30
5.4.130.0070.06716.33
5.4.120.0030.06316.32
5.4.110.0000.07716.46
5.4.100.0130.04016.25
5.4.90.0030.06016.23
5.4.80.0030.05316.34
5.4.70.0070.06316.26
5.4.60.0170.05716.23
5.4.50.0100.07016.25
5.4.40.0070.06716.36
5.4.30.0030.04316.29
5.4.20.0070.04716.41
5.4.10.0130.06716.27
5.4.00.0100.06315.53
5.3.290.0130.05314.69
5.3.280.0130.07714.62
5.3.270.0070.07014.63
5.3.260.0070.07314.46
5.3.250.0070.06014.64
5.3.240.0000.05714.52
5.3.230.0100.07014.63
5.3.220.0130.05714.54
5.3.210.0030.08014.54
5.3.200.0070.07014.46
5.3.190.0100.07314.59
5.3.180.0070.07314.56
5.3.170.0030.07314.54
5.3.160.0170.06714.44
5.3.150.0030.07714.59
5.3.140.0030.07714.54
5.3.130.0030.07714.57
5.3.120.0070.07714.46
5.3.110.0100.07314.59
5.3.100.0070.06714.08
5.3.90.0170.05714.04
5.3.80.0130.06314.00
5.3.70.0130.06314.04
5.3.60.0070.06714.00
5.3.50.0070.07013.84
5.3.40.0100.06713.84
5.3.30.0030.07713.92
5.3.20.0100.07013.50
5.3.10.0070.06713.59
5.3.00.0030.07713.66
5.2.170.0070.06311.10
5.2.160.0070.05311.14
5.2.150.0270.02311.16
5.2.140.0170.05311.16
5.2.130.0130.05011.12
5.2.120.0070.06311.02
5.2.110.0000.06711.14
5.2.100.0000.06711.09
5.2.90.0000.03711.20
5.2.80.0070.05311.11
5.2.70.0070.06011.13
5.2.60.0100.04011.03
5.2.50.0130.05311.05
5.2.40.0100.05310.82
5.2.30.0030.06010.85
5.2.20.0030.06711.00
5.2.10.0130.05310.89
5.2.00.0070.05710.79
5.1.60.0070.04710.03
5.1.50.0100.05010.05
5.1.40.0100.05010.04
5.1.30.0030.05310.42
5.1.20.0000.05310.45
5.1.10.0030.0309.93
5.1.00.0000.05710.17
5.0.50.0030.0438.62
5.0.40.0030.0308.33
5.0.30.0000.0678.23
5.0.20.0070.0408.34
5.0.10.0030.0438.20
5.0.00.0030.0638.29
4.4.90.0000.0378.05
4.4.80.0070.0308.05
4.4.70.0070.0338.05
4.4.60.0000.0378.05
4.4.50.0000.0378.05
4.4.40.0030.0278.05
4.4.30.0070.0308.05
4.4.20.0070.0338.05
4.4.10.0070.0308.05
4.4.00.0000.0538.05
4.3.110.0030.0338.05
4.3.100.0000.0208.05
4.3.90.0100.0308.05
4.3.80.0030.0478.05
4.3.70.0000.0338.05
4.3.60.0100.0238.05
4.3.50.0030.0378.05
4.3.40.0030.0278.05
4.3.30.0000.0378.05
4.3.20.0000.0308.05
4.3.10.0000.0208.05
4.3.00.0000.0378.05

preferences:
39.38 ms | 400 KiB | 5 Q