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; } ?>

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.10.0120.00416.09
7.4.00.0090.00815.61
7.3.130.0070.01416.20
7.3.120.0100.00915.42
7.3.110.0080.01115.38
7.3.100.0060.00715.28
7.3.90.0030.01115.46
7.3.80.0070.00715.50
7.3.70.0070.01215.45
7.3.60.0070.00515.37
7.3.50.0050.00715.31
7.3.40.0000.01315.47
7.3.30.0070.00515.19
7.3.20.0050.01017.14
7.3.10.0050.00917.14
7.3.00.0070.00616.98
7.2.260.0100.01016.41
7.2.250.0070.01315.71
7.2.240.0060.01115.56
7.2.230.0080.00415.48
7.2.220.0030.01015.42
7.2.210.0080.00615.59
7.2.200.0040.00615.48
7.2.190.0050.00815.38
7.2.180.0090.00315.49
7.2.170.0070.00615.52
7.2.160.0030.00616.36
7.2.150.0120.00618.20
7.2.140.0060.01218.34
7.2.130.0090.00717.37
7.2.120.0070.00917.43
7.2.110.0050.01017.55
7.2.100.0080.00717.32
7.2.90.0050.01017.34
7.2.80.0060.01117.36
7.2.70.0040.01117.44
7.2.60.0050.00617.40
7.2.50.0060.00717.45
7.2.40.0070.00917.43
7.2.30.0100.00717.51
7.2.20.0060.00917.50
7.2.10.0050.01017.32
7.2.00.0080.00817.82
7.1.330.0120.00516.29
7.1.320.0050.00516.42
7.1.310.0050.00916.46
7.1.300.0050.00616.38
7.1.290.0080.00516.26
7.1.280.0020.00816.31
7.1.270.0050.00516.31
7.1.260.0070.00616.26
7.1.250.0100.00316.36
7.1.240.0090.00316.35
7.1.230.0110.00316.36
7.1.220.0030.00916.36
7.1.210.0050.00916.29
7.1.200.0100.00616.27
7.1.190.0080.00716.37
7.1.180.0110.00616.21
7.1.170.0070.00916.38
7.1.160.0080.00416.34
7.1.150.0030.01116.23
7.1.140.0030.01216.42
7.1.130.0030.01116.40
7.1.120.0050.00816.35
7.1.110.0100.00516.31
7.1.100.0060.00916.84
7.1.90.0090.00616.24
7.1.80.0080.00616.25
7.1.70.0050.00816.63
7.1.60.0060.01017.37
7.1.50.0080.00816.49
7.1.40.0070.00916.41
7.1.30.0010.01116.13
7.1.20.0050.01116.31
7.1.10.0050.01116.36
7.1.00.0100.02818.26
7.0.330.0100.00816.18
7.0.320.0030.01016.06
7.0.310.0060.00815.89
7.0.300.0050.01015.96
7.0.290.0060.00516.03
7.0.280.0090.00515.81
7.0.270.0050.00815.90
7.0.260.0090.00716.03
7.0.250.0100.00716.02
7.0.240.0080.00316.17
7.0.230.0080.00515.91
7.0.220.0030.01116.03
7.0.210.0070.00716.10
7.0.200.0090.00416.23
7.0.190.0070.00516.01
7.0.180.0070.00516.19
7.0.170.0060.00816.07
7.0.160.0050.00816.13
7.0.150.0090.00815.92
7.0.140.0100.00816.10
7.0.130.0110.00616.02
7.0.120.0070.00916.13
7.0.110.0090.00515.97
7.0.100.0110.00415.94
7.0.90.0090.00615.87
7.0.80.0060.00816.04
7.0.70.0090.00816.01
7.0.60.0050.02217.26
7.0.50.0090.02316.67
7.0.40.0020.02516.11
7.0.30.0220.02716.03
7.0.20.0120.02615.95
7.0.10.0100.02916.09
7.0.00.0070.02516.13
5.6.400.0030.01015.73
5.6.390.0080.00515.59
5.6.380.0050.00814.68
5.6.370.0040.00914.88
5.6.360.0070.00715.01
5.6.350.0060.00614.85
5.6.340.0110.00514.94
5.6.330.0060.00614.95
5.6.320.0030.01014.53
5.6.310.0020.01214.84
5.6.300.0030.01114.95
5.6.290.0020.01414.87
5.6.280.0050.01516.88
5.6.270.0020.01314.91
5.6.260.0070.00714.86
5.6.250.0040.00914.83
5.6.240.0060.00414.90
5.6.230.0080.00714.98
5.6.220.0070.00714.74
5.6.210.0070.03216.68
5.6.200.0110.03015.93
5.6.190.0050.02916.71
5.6.180.0120.02216.79
5.6.170.0100.02016.74
5.6.160.0050.02216.74
5.6.150.0060.03316.00
5.6.140.0090.01815.85
5.6.130.0070.03415.91
5.6.120.0090.02316.91
5.6.110.0140.02717.00
5.6.100.0010.02316.85
5.6.90.0090.02816.92
5.6.80.0070.02116.72
5.6.70.0050.01014.91
5.6.60.0100.00614.84
5.6.50.0100.00415.04
5.6.40.0050.01014.69
5.6.30.0050.00914.77
5.6.20.0070.00814.61
5.6.10.0070.00814.91
5.6.00.0070.00914.97
5.5.380.0080.01413.63
5.5.370.0140.00813.55
5.5.360.0090.01113.67
5.5.350.0160.03315.89
5.5.340.0110.02115.09
5.5.330.0120.02415.83
5.5.320.0110.02215.85
5.5.310.0170.03215.86
5.5.300.0120.03115.07
5.5.290.0120.02815.08
5.5.280.0120.03515.99
5.5.270.0090.02315.97
5.5.260.0080.03615.89
5.5.250.0140.02415.84
5.5.240.0160.01615.69
5.5.230.0120.00713.62
5.5.220.0090.00913.61
5.5.210.0130.00713.49
5.5.200.0070.01113.52
5.5.190.0100.00713.53
5.5.180.0080.01013.60
5.5.170.0060.01313.47
5.5.160.0070.01213.50
5.5.150.0090.00913.47
5.5.140.0090.00813.47
5.5.130.0140.00413.58
5.5.120.0100.01113.42
5.5.110.0110.00713.39
5.5.100.0030.01113.54
5.5.90.0070.01213.49
5.5.80.0060.00913.56
5.5.70.0130.00613.63
5.5.60.0090.00813.62
5.5.50.0050.00913.58
5.5.40.0100.00913.54
5.5.30.0070.00613.48
5.5.20.0050.01013.48
5.5.10.0100.00513.64
5.5.00.0070.00713.54

preferences:
40.31 ms | 401 KiB | 5 Q