3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 8; $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) . ':' . md5(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.0070.01115.05
7.3.120.0030.01314.54
7.3.110.0030.01414.80
7.3.100.0090.00914.89
7.3.90.0030.01214.66
7.3.80.0040.00814.77
7.3.70.0030.01314.93
7.3.60.0040.00414.61
7.3.50.0030.00914.95
7.3.40.0120.00314.57
7.3.30.0100.00714.86
7.3.20.0030.00916.46
7.3.10.0170.00016.51
7.3.00.0070.00716.61
7.2.250.0030.01415.04
7.2.240.0070.01314.87
7.2.230.0030.00714.86
7.2.220.0140.00715.28
7.2.210.0000.01415.27
7.2.200.0030.00715.14
7.2.190.0070.00715.17
7.2.180.0040.00915.13
7.2.170.0120.00314.82
7.2.00.0130.00319.36
7.1.330.0000.01815.82
7.1.320.0000.01515.75
7.1.310.0040.00416.11
7.1.300.0070.00715.98
7.1.290.0100.00315.90
7.1.280.0070.00715.76
7.1.270.0060.00315.99
7.1.260.0140.00015.83
7.1.70.0040.00417.25
7.1.60.0100.00017.04
7.1.50.0080.00417.01
7.1.40.0040.01116.68
7.1.30.0040.00716.74
7.1.20.0080.00316.77
7.1.10.0000.01016.48
7.1.00.0000.00816.77
7.0.200.0080.00016.89
7.0.190.0040.00416.80
7.0.180.0060.00916.26
7.0.170.0060.00616.28
7.0.160.0000.00716.45
7.0.150.0000.00816.29
7.0.140.0000.00716.46
7.0.130.0030.00616.60
7.0.120.0030.00616.68
7.0.110.0080.00316.49
7.0.100.0000.00916.52
7.0.90.0030.00616.35
7.0.80.0130.00316.53
7.0.70.0000.01016.26
7.0.60.0030.01516.27
7.0.50.0040.00916.49
7.0.40.0030.00714.91
7.0.30.0070.00714.91
7.0.20.0080.00014.91
7.0.10.0000.00714.91
7.0.00.0000.00814.91
5.6.300.0030.04620.71
5.6.290.0070.04720.83
5.6.280.0000.04820.86
5.6.270.0330.03320.81
5.6.260.0060.05520.87
5.6.250.0030.05221.00
5.6.240.0100.04320.91
5.6.230.0140.03520.86
5.6.220.0000.06120.96
5.6.210.0030.08320.83
5.6.200.0120.04420.97
5.6.190.0070.04320.96
5.6.180.0100.07221.08
5.6.170.0030.04121.02
5.6.160.0070.04321.04
5.6.150.0030.04120.85
5.6.140.0030.04620.93
5.6.130.0030.04320.86
5.6.120.0030.04520.85
5.6.110.0030.04320.88
5.6.100.0070.03820.72
5.6.90.0000.04920.83
5.6.80.0000.04820.35
5.6.70.0140.07820.32
5.6.60.0060.04220.32
5.6.50.0370.02820.15
5.6.40.0100.04020.20
5.6.30.0120.03520.38
5.6.20.0030.05820.31
5.6.10.0030.04320.42
5.6.00.0100.03720.20
5.5.380.0000.04217.54
5.5.370.0000.06417.44
5.5.360.0060.05217.43
5.5.350.0070.05617.60
5.5.340.0030.05517.96
5.5.330.0030.03818.04
5.5.320.0070.06717.95
5.5.310.0070.07818.03
5.5.300.0000.04517.74
5.5.290.0160.02618.06
5.5.280.0040.04217.74
5.5.270.0030.04318.03
5.5.260.0030.05217.84
5.5.250.0060.04117.87
5.5.240.0060.03917.45
5.5.230.0060.04517.32
5.5.220.0030.04117.41
5.5.210.0000.04417.44
5.5.200.0070.03617.09
5.5.190.0040.04317.09
5.5.180.0000.04317.31
5.5.160.0060.03817.38
5.5.150.0090.03817.07
5.5.140.0000.04017.38
5.5.130.0030.07117.38
5.5.120.0030.04217.36
5.5.110.0070.03317.06
5.5.100.0030.04517.24
5.5.90.0070.03617.27
5.5.80.0030.03617.30
5.5.70.0030.03717.29
5.5.60.0030.04517.08
5.5.50.0060.05217.23
5.5.40.0070.03817.36
5.5.30.0030.04017.20
5.5.20.0000.04317.30
5.5.10.0000.04717.09
5.5.00.0070.07517.25
5.4.450.0000.04319.28
5.4.440.0030.04519.16
5.4.430.0030.05719.24
5.4.420.0100.03219.34
5.4.410.0100.03119.18
5.4.400.0100.03619.13
5.4.390.0070.03719.15
5.4.380.0030.04119.07
5.4.370.0030.04218.89
5.4.360.0030.04519.06
5.4.350.0060.03319.14
5.4.340.0100.07318.86
5.4.320.0100.03318.83
5.4.310.0030.04319.07
5.4.300.0070.03418.88
5.4.290.0070.03919.12
5.4.280.0140.04619.14
5.4.270.0000.04418.98
5.4.260.0030.03719.07
5.4.250.0290.03518.85
5.4.240.0030.03718.83
5.4.230.0130.07219.13
5.4.220.0070.03718.98
5.4.210.0070.05718.91
5.4.200.0030.04618.85
5.4.190.0070.03919.13
5.4.180.0000.04019.16
5.4.170.0030.03819.11
5.4.160.0030.03719.08
5.4.150.0030.06518.84
5.4.140.0000.04316.39
5.4.130.0030.05216.32
5.4.120.0070.05016.46
5.4.110.0030.03416.63
5.4.100.0070.06916.49
5.4.90.0060.03516.43
5.4.80.0070.07116.66
5.4.70.0030.04616.70
5.4.60.0060.03116.67
5.4.50.0000.04016.69
5.4.40.0000.04116.72
5.4.30.0030.03316.62
5.4.20.0000.03816.60
5.4.10.0000.05016.60
5.4.00.0030.03515.90
5.3.290.0000.04614.91
5.3.280.0030.04114.91
5.3.270.0030.04114.91
5.3.260.0000.04914.91
5.3.250.0030.03914.91
5.3.240.0100.07014.91
5.3.230.0100.03614.91
5.3.220.0000.03814.91
5.3.210.0000.04114.91
5.3.200.0030.03514.91
5.3.190.0070.07114.91
5.3.180.0000.06614.91
5.3.170.0030.04214.91
5.3.160.0030.04514.91
5.3.150.0070.04714.91
5.3.140.0070.03314.91
5.3.130.0000.04114.91
5.3.120.0030.03614.91
5.3.110.0070.04914.91
5.3.100.0070.03214.91
5.3.90.0030.03814.91
5.3.80.0040.03514.91
5.3.70.0000.04114.91
5.3.60.0000.04314.91
5.3.50.0030.03414.91
5.3.40.0100.02914.91
5.3.30.0000.04114.91
5.3.20.0030.04014.91
5.3.10.0030.07514.91
5.3.00.0000.04014.91
5.2.170.0030.03114.91
5.2.160.0040.03514.91
5.2.150.0030.02914.91
5.2.140.0100.02514.91
5.2.130.0000.03314.91
5.2.120.0000.03014.91
5.2.110.0030.02614.91
5.2.100.0000.04514.91
5.2.90.0030.03114.91
5.2.80.0030.03014.91
5.2.70.0000.03014.91
5.2.60.0030.02714.91
5.2.50.0030.03214.91
5.2.40.0030.02714.91
5.2.30.0100.05114.91
5.2.20.0000.06514.91
5.2.10.0100.02714.91
5.2.00.0030.03114.91
5.1.60.0000.02614.91
5.1.50.0030.02414.91
5.1.40.0070.02114.91
5.1.30.0030.05814.91
5.1.20.0070.02714.91
5.1.10.0000.03914.91
5.1.00.0030.02614.91
5.0.50.0140.02114.91
5.0.40.0070.03614.91
5.0.30.0030.04514.91
5.0.20.0000.03814.91
5.0.10.0030.02914.91
5.0.00.0030.03614.91
4.4.90.0030.01314.91
4.4.80.0000.01814.91
4.4.70.0030.01414.91
4.4.60.0040.02514.91
4.4.50.0070.03314.91
4.4.40.0000.02614.91
4.4.30.0000.01714.91
4.4.20.0060.03114.91
4.4.10.0000.01814.91
4.4.00.0000.04914.91
4.3.110.0000.01814.91
4.3.100.0040.03214.91
4.3.90.0000.03314.91
4.3.80.0030.02414.91
4.3.70.0000.01714.91
4.3.60.0000.01814.91
4.3.50.0000.02114.91
4.3.40.0000.02514.91
4.3.30.0000.02414.91
4.3.20.0030.03014.91
4.3.10.0000.03114.91
4.3.00.0030.03214.91

preferences:
37.86 ms | 401 KiB | 5 Q