3v4l.org

run code in 300+ PHP versions simultaneously
<?php function readable_random_string($length = 6){ $conso=array("b","c","d","f","g","h","j","k","l", "m","n","p","r","s","t","v","w","x","y","z"); $vocal=array("a","e","i","o","u"); $password=""; srand ((double)microtime()*1000000); $max = $length/2; for($i=1; $i<=$max; $i++) { $password.=$conso[rand(0,19)]; $password.=$vocal[rand(0,4)]; } return $password; } echo readable_random_string();

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.3.120.0100.00714.65
7.3.110.0080.00614.70
7.3.100.0040.00814.79
7.3.90.0000.01414.59
7.3.80.0000.00914.68
7.3.70.0030.01014.93
7.3.60.0070.00714.99
7.3.50.0060.00614.81
7.3.40.0070.00714.81
7.3.30.0070.00714.91
7.3.20.0100.00316.58
7.3.10.0110.00416.72
7.3.00.0070.00716.61
7.2.240.0100.00715.27
7.2.230.0050.00314.64
7.2.220.0100.00715.17
7.2.210.0000.00914.73
7.2.200.0070.01014.70
7.2.190.0040.01115.19
7.2.180.0030.00714.89
7.2.170.0040.00915.05
7.2.160.0030.00615.14
7.2.150.0030.01316.70
7.2.140.0040.01116.90
7.2.130.0060.00916.68
7.2.120.0000.01616.91
7.2.110.0060.00616.77
7.2.100.0000.01416.89
7.2.90.0030.01216.89
7.2.80.0060.00616.86
7.2.70.0040.01516.74
7.2.60.0030.00916.77
7.2.50.0090.00616.72
7.2.40.0040.01016.71
7.2.30.0040.01116.66
7.2.20.0050.00516.58
7.2.10.0060.01016.85
7.2.00.0100.00518.20
7.1.330.0100.00715.60
7.1.320.0070.00715.69
7.1.310.0040.00415.86
7.1.300.0070.00715.91
7.1.290.0100.00315.68
7.1.280.0030.00715.61
7.1.270.0000.00915.72
7.1.260.0040.01115.70
7.1.250.0070.00715.82
7.1.70.0030.00317.18
7.1.60.0160.01019.70
7.1.50.0070.01417.10
7.1.00.0030.07722.40
7.0.200.0030.00716.69
7.0.140.0030.07321.95
7.0.60.0130.07719.93
7.0.50.0000.04317.88
7.0.40.0030.07020.04
7.0.30.0530.07020.24
7.0.20.0170.04320.12
7.0.10.0370.07320.24
7.0.00.0070.05720.22
5.6.280.0070.07020.82
5.6.210.0070.04020.69
5.6.200.0070.03718.19
5.6.190.0030.08020.60
5.6.180.0300.07020.38
5.6.170.0300.02720.54
5.6.160.0030.08320.50
5.6.150.0030.04718.15
5.6.140.0000.04318.18
5.6.130.0070.04318.19
5.6.120.0000.04321.02
5.6.110.0000.04721.10
5.6.100.0030.09021.14
5.6.90.0130.07720.98
5.6.80.0130.07320.52
5.6.70.0200.03020.53
5.5.350.0100.09020.31
5.5.340.0000.09017.94
5.5.330.0030.04020.40
5.5.320.0130.04320.30
5.5.310.0330.04320.32
5.5.300.0070.04018.08
5.5.290.0100.07717.98
5.5.280.0030.08320.89
5.5.270.0000.04320.80
5.5.260.0000.04320.79
5.5.250.0070.04320.69
5.5.240.0100.07720.29
5.4.450.0430.05719.40
5.4.440.0700.05319.70
5.4.430.0130.05019.70
5.4.420.0700.00019.37
5.4.410.0100.06018.70
5.4.400.0330.05018.78
5.4.390.0470.05018.73
5.4.380.0270.05018.49
5.4.370.0100.04318.73
5.4.360.0700.06018.79
5.4.350.0100.06812.02
5.4.340.0220.05512.02
5.4.320.0050.03912.51
5.4.310.0100.05112.51
5.4.300.0050.03612.51
5.4.290.0060.04612.51
5.4.280.0090.04312.41
5.4.270.0040.03812.41
5.4.260.0050.04412.40
5.4.250.0060.03612.40
5.4.240.0070.04212.41
5.4.230.0070.04112.40
5.4.220.0070.04512.39
5.4.210.0060.04112.40
5.4.200.0040.04312.39
5.4.190.0100.04812.39
5.4.180.0080.04112.39
5.4.170.0050.03712.40
5.4.160.0050.03712.39
5.4.150.0090.04112.39
5.4.140.0050.03812.07
5.4.130.0050.03512.06
5.4.120.0090.04712.02
5.4.110.0060.03412.02
5.4.100.0070.04112.02
5.4.90.0060.04412.02
5.4.80.0070.04612.02
5.4.70.0080.03312.01
5.4.60.0060.03412.02
5.4.50.0080.04412.01
5.4.40.0070.03312.00
5.4.30.0050.04412.00
5.4.20.0060.03511.99
5.4.10.0060.04112.00
5.4.00.0040.04211.49
5.3.290.0080.04012.80
5.3.280.0110.04912.71
5.3.270.0070.03912.73
5.3.260.0100.04312.72
5.3.250.0040.03812.71
5.3.240.0040.03912.72
5.3.230.0060.03712.71
5.3.220.0040.03912.68
5.3.210.0060.05712.68
5.3.200.0050.03712.68
5.3.190.0090.04012.68
5.3.180.0080.05012.67
5.3.170.0100.05012.66
5.3.160.0070.03712.68
5.3.150.0050.03912.67
5.3.140.0090.03912.66
5.3.130.0060.03812.66
5.3.120.0080.03712.66
5.3.110.0080.03612.66
5.3.100.0050.03712.12
5.3.90.0070.03512.11
5.3.80.0050.03912.11
5.3.70.0070.03612.09
5.3.60.0070.03612.08
5.3.50.0060.03612.03
5.3.40.0060.03712.03
5.3.30.0080.03911.98
5.3.20.0060.03511.77
5.3.10.0080.03411.73
5.3.00.0100.03311.72
5.2.170.0050.0319.23
5.2.160.0020.0319.23
5.2.150.0050.0319.23
5.2.140.0040.0319.22
5.2.130.0060.0359.18
5.2.120.0040.0299.18
5.2.110.0020.0319.18
5.2.100.0020.0309.18
5.2.90.0050.0289.18
5.2.80.0030.0319.18
5.2.70.0060.0339.18
5.2.60.0070.0349.13
5.2.50.0040.0389.10
5.2.40.0040.0309.07
5.2.30.0060.0299.05
5.2.20.0020.0319.04
5.2.10.0060.0298.95
5.2.00.0030.0308.81
5.1.60.0050.0238.09
5.1.50.0020.0268.09
5.1.40.0020.0268.07
5.1.30.0050.0248.42
5.1.20.0090.0228.45
5.1.10.0040.0268.16
5.1.00.0060.0248.17
5.0.50.0110.0306.66
5.0.40.0140.0236.51
5.0.30.0110.0366.33
5.0.20.0030.0256.33
5.0.10.0050.0236.30
5.0.00.0120.0416.29
4.4.90.0050.0214.78
4.4.80.0080.0174.76
4.4.70.0050.0254.75
4.4.60.0030.0154.75
4.4.50.0030.0154.77
4.4.40.0020.0264.71
4.4.30.0040.0154.76
4.4.20.0040.0144.85
4.4.10.0020.0164.85
4.4.00.0060.0224.76
4.3.110.0050.0244.67
4.3.100.0050.0204.67
4.3.90.0050.0184.63
4.3.80.0110.0614.60
4.3.70.0050.0334.63
4.3.60.0040.0214.63
4.3.50.0110.0274.62
4.3.40.0230.0714.55
4.3.30.0010.0193.36
4.3.20.0050.0273.34
4.3.10.0040.0183.29
4.3.00.0000.0236.57

preferences:
34.25 ms | 400 KiB | 5 Q