3v4l.org

run code in 300+ PHP versions simultaneously
<?php function GeneratePassword($i,$s){ $r='';$s=str_split($s); for($i; $i>0; $i--)$r.=array_rand($s); return $r; } echo GeneratePassword(5,'wffweg');

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.0000.01219.30
7.1.70.0030.00617.29
7.1.60.0100.00719.17
7.1.50.0140.02034.91
7.1.00.0030.03322.31
7.0.200.0020.00516.88
7.0.140.0070.07022.04
7.0.60.0370.05020.02
7.0.50.0030.04017.86
7.0.40.0000.05020.02
7.0.30.0030.08320.25
7.0.20.0300.07320.09
7.0.10.0200.06020.23
7.0.00.0030.06020.23
5.6.280.0030.07321.09
5.6.210.0070.08320.77
5.6.200.0070.07318.22
5.6.190.0070.08020.41
5.6.180.0170.06020.46
5.6.170.0300.06320.49
5.6.160.0070.04020.46
5.6.150.0070.08018.19
5.6.140.0100.07018.15
5.6.130.0130.05018.18
5.6.120.0070.05021.13
5.6.110.0030.05021.12
5.6.100.0100.04721.00
5.6.90.0070.08721.00
5.6.80.0270.05020.36
5.5.350.0070.04320.53
5.5.340.0030.08318.01
5.5.330.0000.04320.43
5.5.320.0370.08020.51
5.5.310.0330.06720.30
5.5.300.0030.08317.95
5.5.290.0030.09017.96
5.5.280.0200.07020.80
5.5.270.0130.07020.96
5.5.260.0130.08020.64
5.5.250.0030.08320.59
5.5.240.0100.03320.27
5.4.450.0330.06719.46
5.4.440.0230.08019.31
5.4.430.0400.07319.32
5.4.420.0270.07319.53
5.4.410.0300.04719.05
5.4.400.0200.07319.09
5.4.390.0200.04019.22
5.4.380.0370.06319.02
5.4.370.0270.07019.22
5.4.360.0270.07718.95
5.4.350.0400.05019.19
5.4.340.0300.05318.99
5.4.320.0300.03718.87
5.4.310.0270.07019.22
5.4.300.0330.07018.87
5.4.290.0370.03719.20
5.4.280.0300.03018.84
5.4.270.0330.06319.22
5.4.260.0200.04318.86
5.4.250.0200.04718.98
5.4.240.0400.05719.19
5.4.230.0230.07719.32
5.4.220.0300.07018.84
5.4.210.0170.04318.84
5.4.200.0200.03318.84
5.4.190.0170.04319.05
5.4.180.0170.04719.05
5.4.170.0170.04319.23
5.4.160.0100.04018.98
5.4.150.0170.03719.20
5.4.140.0200.03016.31
5.4.130.0200.03316.45
5.4.120.0130.03716.66
5.4.110.0170.03316.55
5.4.100.0270.03016.56
5.4.90.0230.02716.35
5.4.80.0170.03316.25
5.4.70.0170.03316.59
5.4.60.0130.03716.51
5.4.50.0170.03316.38
5.4.40.0200.03716.39
5.4.30.0170.03316.16
5.4.20.0170.04016.51
5.4.10.0200.03316.34
5.4.00.0130.04015.78
5.3.290.0370.04314.63
5.3.280.0330.07314.67
5.3.270.0100.04314.71
5.3.260.0100.04314.57
5.3.250.0200.03314.52
5.3.240.0170.04014.52
5.3.230.0170.03314.50
5.3.220.0200.03314.50
5.3.210.0170.03314.79
5.3.200.0130.03714.54
5.3.190.0200.06014.78
5.3.180.0130.04014.53
5.3.170.0200.03314.59
5.3.160.0200.03314.47
5.3.150.0130.04314.61
5.3.140.0200.06014.52
5.3.130.0130.05014.55
5.3.120.0170.04714.62
5.3.110.0200.03314.46
5.3.100.0270.05714.20
5.3.90.0270.05714.10
5.3.80.0300.03713.92
5.3.70.0270.04314.05
5.3.60.0230.04014.22
5.3.50.0230.06314.03
5.3.40.0300.06313.87
5.3.30.0230.04014.12
5.3.20.0200.04013.74
5.3.10.0330.06013.66
5.3.00.0330.06313.64
5.2.170.0270.03712.18
5.2.160.0230.06312.18
5.2.150.0170.03312.18
5.2.140.0200.04012.18
5.2.130.0270.05712.18
5.2.120.0230.06012.18
5.2.110.0270.05712.18
5.2.100.0230.04712.18
5.2.90.0230.06012.18
5.2.80.0170.04012.18
5.2.70.0200.06312.18
5.2.60.0170.05012.18
5.2.50.0300.05012.18
5.2.40.0200.04012.18
5.2.30.0230.05012.18
5.2.20.0170.06012.18
5.2.10.0200.03312.18
5.2.00.0170.04712.18
5.1.60.0230.04012.18
5.1.50.0170.03312.18
5.1.40.0170.05312.18
5.1.30.0230.06012.18
5.1.20.0200.06012.18
5.1.10.0270.04712.18
5.1.00.0370.04012.18
5.0.50.0070.03712.18
5.0.40.0100.03012.18
5.0.30.0130.04312.18
5.0.20.0070.02712.18
5.0.10.0100.02712.18
5.0.00.0070.05312.18
4.4.90.0170.02312.18
4.4.80.0070.03012.18
4.4.70.0070.03712.18
4.4.60.0130.02312.18
4.4.50.0130.03012.18
4.4.40.0100.05312.18
4.4.30.0070.04012.18
4.4.20.0100.03312.18
4.4.10.0130.03312.18
4.4.00.0130.04712.18
4.3.110.0100.03012.18
4.3.100.0130.01312.18
4.3.90.0100.02712.18
4.3.80.0100.05312.18
4.3.70.0130.02312.18
4.3.60.0070.03712.18
4.3.50.0100.02712.18
4.3.40.0070.03312.18
4.3.30.0030.03012.18
4.3.20.0030.03012.18
4.3.10.0030.04012.18
4.3.00.0070.02712.18

preferences:
36.36 ms | 401 KiB | 5 Q