3v4l.org

run code in 300+ PHP versions simultaneously
c<?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.2.00.0060.00619.20
7.1.70.0000.01117.19
7.1.60.0030.01719.70
7.1.50.0090.01216.92
7.1.00.0030.07322.27
7.0.200.0040.00416.82
7.0.140.0000.07722.18
7.0.60.0070.04319.93
7.0.50.0030.06017.72
7.0.40.0100.07020.09
7.0.30.0270.03320.26
7.0.20.0270.05020.19
7.0.10.0030.08020.12
7.0.00.0070.04020.16
5.6.280.0000.08021.03
5.6.210.0100.05020.45
5.6.200.0070.05318.19
5.6.190.0070.08020.52
5.6.180.0230.04020.58
5.6.170.0330.08020.56
5.6.160.0070.04020.61
5.6.150.0070.03318.16
5.6.140.0130.07718.12
5.6.130.0030.09318.12
5.6.120.0100.08720.90
5.6.110.0070.04321.00
5.6.100.0100.07721.11
5.6.90.0100.06321.13
5.6.80.0070.08020.38
5.5.350.0070.05720.43
5.5.340.0030.07717.98
5.5.330.0070.08020.13
5.5.320.0270.05720.38
5.5.310.0200.08720.36
5.5.300.0130.07717.99
5.5.290.0100.05018.01
5.5.280.0030.04020.90
5.5.270.0130.07320.80
5.5.260.0070.04720.87
5.5.250.0130.04720.55
5.5.240.3630.04720.36
5.4.450.0030.03731.25
5.4.440.0300.04729.31
5.4.430.0470.05729.25
5.4.420.0630.04028.64
5.4.410.0270.04025.05
5.4.400.0200.04322.76
5.4.390.0270.04321.57
5.4.380.0130.05318.67
5.4.370.0200.05318.68
5.4.360.0170.05018.61
5.4.350.0230.04718.48
5.4.340.0170.05018.48
5.4.320.0040.04412.51
5.4.310.0060.04012.50
5.4.300.0050.03812.51
5.4.290.0040.04012.50
5.4.280.0050.03512.40
5.4.270.0090.03712.41
5.4.260.0040.03812.40
5.4.250.0080.03712.40
5.4.240.0070.03512.41
5.4.230.0050.04012.39
5.4.220.0080.03312.39
5.4.210.0030.03912.40
5.4.200.0050.03812.39
5.4.190.0050.03712.39
5.4.180.0050.03712.39
5.4.170.0090.03312.40
5.4.160.0070.03912.39
5.4.150.0090.03612.39
5.4.140.0070.04212.07
5.4.130.0020.03912.06
5.4.120.0060.04212.02
5.4.110.0090.03212.02
5.4.100.0050.03812.02
5.4.90.0070.03812.02
5.4.80.0060.04912.02
5.4.70.0060.03612.01
5.4.60.0040.04012.02
5.4.50.0040.04212.01
5.4.40.0080.03212.00
5.4.30.0040.03612.00
5.4.20.0070.03512.00
5.4.10.0030.03712.00
5.4.00.0070.03411.48
5.3.290.0060.04312.80
5.3.280.0080.03512.71
5.3.270.0070.03812.73
5.3.260.0040.04012.72
5.3.250.0080.03512.72
5.3.240.0040.03912.72
5.3.230.0030.04112.71
5.3.220.0080.03512.68
5.3.210.0050.04012.68
5.3.200.0080.03512.68
5.3.190.0080.03712.67
5.3.180.0050.03812.67
5.3.170.0080.04312.66
5.3.160.0060.04312.67
5.3.150.0090.03412.67
5.3.140.0060.04012.66
5.3.130.0070.04712.66
5.3.120.0080.03712.66
5.3.110.0060.03912.66
5.3.100.0040.03812.12
5.3.90.0060.03512.11
5.3.80.0080.03512.09
5.3.70.0050.03812.09
5.3.60.0080.03812.08
5.3.50.0050.03712.03
5.3.40.0050.03812.03
5.3.30.0080.03711.98
5.3.20.0060.03711.77
5.3.10.0070.03911.73
5.3.00.0050.03911.72
5.2.170.0030.0339.23
5.2.160.0060.0299.22
5.2.150.0080.0319.22
5.2.140.0030.0329.22
5.2.130.0080.0319.18
5.2.120.0050.0299.18
5.2.110.0060.0309.19
5.2.100.0050.0299.18
5.2.90.0050.0309.18
5.2.80.0050.0359.17
5.2.70.0080.0339.18
5.2.60.0040.0459.13
5.2.50.0040.0409.10
5.2.40.0070.0279.07
5.2.30.0040.0349.05
5.2.20.0060.0309.04
5.2.10.0070.0278.95
5.2.00.0040.0318.81
5.1.60.0040.0258.09
5.1.50.0020.0298.09
5.1.40.0040.0268.07
5.1.30.0040.0308.42
5.1.20.0030.0298.44
5.1.10.0050.0268.16
5.1.00.0030.0288.17
5.0.50.0050.0216.66
5.0.40.0140.0416.52
5.0.30.0050.0326.33
5.0.20.0040.0256.33
5.0.10.0060.0256.31
5.0.00.0030.0316.30
4.4.90.0040.0184.78
4.4.80.0010.0184.75
4.4.70.0050.0134.76
4.4.60.0020.0174.75
4.4.50.0030.0154.77
4.4.40.0030.0254.71
4.4.30.0040.0144.75
4.4.20.0040.0204.84
4.4.10.0050.0144.85
4.4.00.0010.0274.76
4.3.110.0060.0144.66
4.3.100.0040.0184.67
4.3.90.0040.0144.63
4.3.80.0020.0264.60
4.3.70.0040.0164.63
4.3.60.0020.0164.63
4.3.50.0050.0144.63
4.3.40.0060.0224.55
4.3.30.0030.0153.36
4.3.20.0030.0183.33
4.3.10.0050.0133.29
4.3.00.0070.01321.57

preferences:
33.59 ms | 401 KiB | 5 Q