3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 32; $alpa = "abcdefghijklmnopqrstuvwxyz";$alpa.=strtoupper($alpa); $alpa.="1234567890";$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.4.00.0100.01014.59
7.3.120.0070.00714.78
7.3.110.0100.00914.69
7.3.100.0070.00715.04
7.3.90.0040.01214.80
7.3.80.0110.00414.88
7.3.70.0140.00314.88
7.3.60.0100.00714.64
7.3.50.0060.00914.81
7.3.40.0070.00314.93
7.3.30.0030.00615.01
7.3.20.0120.00316.75
7.3.10.0050.01316.58
7.3.00.0090.01016.77
7.2.250.0100.01014.94
7.2.240.0040.01414.62
7.2.230.0030.01515.09
7.2.220.0070.00715.14
7.2.210.0070.01114.75
7.2.200.0110.00715.05
7.2.190.0040.01215.19
7.2.180.0040.00815.11
7.2.170.0060.00614.82
7.2.130.0070.00716.71
7.2.120.0090.00616.83
7.2.110.0050.00816.74
7.2.100.0070.00916.79
7.2.90.0030.01316.87
7.2.80.0080.00816.58
7.2.70.0170.00416.82
7.2.60.0090.00816.56
7.2.50.0100.01016.55
7.2.40.0120.01016.62
7.2.30.0070.00916.61
7.2.20.0120.00616.98
7.2.10.0100.01216.67
7.2.00.0070.01017.70
7.1.330.0110.00415.88
7.1.320.0030.01015.75
7.1.310.0030.00915.96
7.1.300.0000.01315.81
7.1.290.0030.01315.79
7.1.280.0030.01415.87
7.1.270.0030.01015.67
7.1.260.0040.01215.54
7.1.250.0050.00915.59
7.1.70.0000.00717.29
7.1.60.0160.00919.70
7.1.50.0090.01216.64
7.1.00.0130.06722.30
7.0.200.0040.00416.66
7.0.140.0000.07722.00
7.0.100.0300.06020.00
7.0.90.0170.08320.18
7.0.80.0130.04019.88
7.0.70.0130.05319.82
7.0.60.0230.06020.07
7.0.50.0100.06720.17
7.0.40.0000.06020.08
7.0.30.0000.07320.08
7.0.20.0030.08320.00
7.0.10.0070.07320.04
7.0.00.0130.07320.14
5.6.280.0070.07020.93
5.6.250.0070.07320.63
5.6.240.0000.09020.63
5.6.230.0000.05320.54
5.6.220.0130.07020.73
5.6.210.0100.08320.48
5.6.200.0200.07721.03
5.6.190.0070.07320.96
5.6.180.0100.06721.11
5.6.170.0030.08721.08
5.6.160.0030.07720.97
5.6.150.0070.05021.02
5.6.140.0070.08021.02
5.6.130.0130.07021.01
5.6.120.0130.08021.06
5.6.110.0100.08320.98
5.6.100.0100.08321.05
5.6.90.0170.07021.02
5.6.80.0030.07320.42
5.6.70.0070.04020.33
5.6.60.0030.05020.42
5.6.50.0030.07020.55
5.6.40.0170.04020.43
5.6.30.0030.07020.35
5.6.20.0100.08020.43
5.6.10.0070.07720.43
5.6.00.0070.07320.48
5.5.380.0030.09020.38
5.5.370.0100.05020.53
5.5.360.0030.08320.44
5.5.350.0100.06320.45
5.5.340.0030.08020.90
5.5.330.0100.07320.81
5.5.320.0230.06720.92
5.5.310.0030.08720.89
5.5.300.0130.08320.92
5.5.290.0170.03720.90
5.5.280.0200.06720.82
5.5.270.0100.06720.86
5.5.260.0100.08320.81
5.5.250.0070.07720.67
5.5.240.0030.08320.30
5.5.230.0100.08020.21
5.5.220.0070.07320.26
5.5.210.0100.08020.21
5.5.200.0130.07720.29
5.5.190.0100.08020.14
5.5.180.0070.08320.21
5.5.160.0100.08020.19
5.5.150.0100.08020.29
5.5.140.0030.05020.27
5.5.130.0070.07320.21
5.5.120.0100.07720.29
5.5.110.0170.07020.26
5.5.100.0130.07720.19
5.5.90.0070.07720.20
5.5.80.0100.07720.18
5.5.70.0100.07020.09
5.5.60.0100.05320.03
5.5.50.0070.05320.06
5.5.40.0030.07320.09
5.5.30.0130.04020.03
5.5.20.0070.07019.95
5.5.10.0100.07020.10
5.5.00.0130.06020.04
5.4.450.0070.08319.56
5.4.440.0130.07319.11
5.4.430.0030.07019.35
5.4.420.0100.07019.13
5.4.410.0070.07719.10
5.4.400.0070.06718.79
5.4.390.0100.07318.92
5.4.380.0030.07318.90
5.4.370.0070.06719.06
5.4.360.0000.04018.79
5.4.350.0100.08019.10
5.4.340.0030.05018.98
5.4.320.0100.07319.13
5.4.310.0070.08019.07
5.4.300.0130.06719.09
5.4.290.0070.07319.04
5.4.280.0170.06319.12
5.4.270.0100.06719.04
5.4.260.0100.04318.78
5.4.250.0070.04718.90
5.4.240.0070.08018.96
5.4.230.0130.06719.02
5.4.220.0070.07719.14
5.4.210.0000.04319.11
5.4.200.0100.04018.93
5.4.190.0000.07718.89
5.4.180.0030.05019.11
5.4.170.0070.05718.95
5.4.160.0070.07319.03
5.4.150.0070.07019.02
5.4.140.0030.04716.37
5.4.130.0070.07716.29
5.4.120.0100.07316.38
5.4.110.0070.07016.29
5.4.100.0030.05316.41
5.4.90.0000.06016.32
5.4.80.0130.05316.36
5.4.70.0230.05716.29
5.4.60.0100.07016.34
5.4.50.0100.04316.33
5.4.40.0100.05716.45
5.4.30.0100.06016.35
5.4.20.0100.05316.26
5.4.10.0100.07016.43
5.4.00.0070.03315.68
5.3.290.0130.06714.61
5.3.280.0130.07014.63
5.3.270.0130.07314.61
5.3.260.0100.07314.48
5.3.250.0170.06314.54
5.3.240.0030.03714.62
5.3.230.0030.05714.50
5.3.220.0130.06714.58
5.3.210.0030.07714.55
5.3.200.0000.08014.47
5.3.190.0000.06014.58
5.3.180.0030.03314.44
5.3.170.0130.06714.56
5.3.160.0100.06014.56
5.3.150.0100.07314.46
5.3.140.0100.06714.57
5.3.130.0030.04714.57
5.3.120.0100.07314.45
5.3.110.0100.06714.52
5.3.100.0100.03713.94
5.3.90.0100.03314.03
5.3.80.0130.06314.03
5.3.70.0100.07014.03
5.3.60.0070.07313.86
5.3.50.0070.07313.96
5.3.40.0100.03313.93
5.3.30.0070.06713.79
5.3.20.0070.04313.64
5.3.10.0100.06313.65
5.3.00.0000.08013.45
5.2.170.0030.06312.23
5.2.160.0070.05712.23
5.2.150.0130.04312.23
5.2.140.0100.05712.23
5.2.130.0070.02712.23
5.2.120.0030.03712.23
5.2.110.0130.05312.23
5.2.100.0070.05312.23
5.2.90.0000.06312.23
5.2.80.0070.05012.23
5.2.70.0030.05712.23
5.2.60.0030.06312.23
5.2.50.0100.03312.23
5.2.40.0000.06012.23
5.2.30.0030.06712.23
5.2.20.0070.06012.23
5.2.10.0030.05012.23
5.2.00.0030.04012.23
5.1.60.0000.03012.23
5.1.50.0000.02712.23
5.1.40.0000.02712.23
5.1.30.0100.02012.23
5.1.20.0030.02712.23
5.1.10.0030.02312.23
5.1.00.0030.02712.23
5.0.50.0000.02312.23
5.0.40.0000.02012.23
5.0.30.0070.03712.23
5.0.20.0030.01712.23
5.0.10.0000.02012.23
5.0.00.0030.03012.23
4.4.90.0000.02312.23
4.4.80.0000.03312.23
4.4.70.0000.03712.23
4.4.60.0000.01712.23
4.4.50.0030.03312.23
4.4.40.0070.02012.23
4.4.30.0030.01312.23
4.4.20.0000.01712.23
4.4.10.0030.02012.23
4.4.00.0070.02012.23
4.3.110.0000.01712.23
4.3.100.0030.01012.23
4.3.90.0000.01712.23
4.3.80.0000.02712.23
4.3.70.0030.01312.23
4.3.60.0000.01712.23
4.3.50.0030.01312.23
4.3.40.0030.02012.23
4.3.30.0030.01012.23
4.3.20.0000.01712.23
4.3.10.0000.01712.23
4.3.00.0030.01312.23

preferences:
38.21 ms | 401 KiB | 5 Q