3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 64; $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);

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.0040.01514.82
7.4.00.0160.00314.73
7.3.130.0100.01014.90
7.3.120.0100.00715.04
7.3.110.0070.01114.52
7.3.100.0090.00615.11
7.3.90.0140.00014.95
7.3.80.0040.01114.75
7.3.70.0040.01114.88
7.3.60.0080.00614.70
7.3.50.0100.00615.01
7.3.40.0030.00614.78
7.3.30.0030.00815.01
7.3.20.0000.01416.63
7.3.10.0030.00916.93
7.3.00.0090.00616.86
7.2.260.0000.01915.08
7.2.250.0030.01014.98
7.2.240.0030.01415.23
7.2.230.0070.01115.18
7.2.220.0070.00715.08
7.2.210.0040.01115.06
7.2.200.0140.00315.14
7.2.190.0000.01014.73
7.2.180.0070.01015.18
7.2.170.0150.00315.15
7.2.160.0040.01114.69
7.2.150.0030.01416.98
7.2.140.0040.00716.91
7.2.130.0060.00616.51
7.2.120.0070.00317.04
7.2.110.0000.01316.95
7.2.100.0060.00916.82
7.2.90.0060.00916.70
7.2.80.0140.00416.92
7.2.70.0090.00617.10
7.2.60.0070.01017.02
7.2.50.0060.00916.85
7.2.40.0060.01116.75
7.2.30.0080.00316.88
7.2.20.0000.01516.79
7.2.10.0060.00917.01
7.2.00.0070.00718.22
7.1.330.0090.00616.04
7.1.320.0000.01015.73
7.1.310.0040.01115.79
7.1.300.0060.00315.60
7.1.290.0000.01415.95
7.1.280.0060.00615.68
7.1.270.0000.01315.63
7.1.260.0030.01315.88
7.1.250.0110.00315.62
7.1.240.0040.01115.79
7.1.230.0070.00715.57
7.1.220.0100.00715.79
7.1.210.0040.01215.80
7.1.200.0080.00416.02
7.1.190.0040.01115.66
7.1.180.0040.00415.93
7.1.170.0060.01015.81
7.1.160.0030.01015.61
7.1.150.0030.01315.89
7.1.140.0070.00715.72
7.1.130.0060.00915.73
7.1.120.0040.00715.84
7.1.110.0120.00315.76
7.1.100.0090.00615.73
7.1.90.0070.01115.87
7.1.80.0120.00315.84
7.1.70.0070.00516.37
7.1.60.0090.01117.53
7.1.50.0050.01516.41
7.1.40.0100.00715.98
7.1.30.0040.00715.75
7.1.20.0070.00715.79
7.1.10.0030.01315.73
7.1.00.0090.01619.06
7.0.330.0140.00015.07
7.0.320.0130.00015.10
7.0.310.0040.00815.50
7.0.300.0070.01015.52
7.0.290.0040.01115.18
7.0.280.0030.01015.39
7.0.270.0130.00315.34
7.0.260.0000.01415.61
7.0.250.0050.00515.57
7.0.240.0060.01215.27
7.0.230.0030.01315.27
7.0.220.0030.00615.38
7.0.210.0030.01215.16
7.0.200.0040.00816.08
7.0.190.0100.00615.40
7.0.180.0030.01215.44
7.0.170.0060.00615.54
7.0.160.0030.01015.19
7.0.150.0090.00615.29
7.0.140.0020.04218.72
7.0.130.0030.00615.57
7.0.120.0040.01115.52
7.0.110.0090.00415.54
7.0.100.0060.03817.67
7.0.90.0180.04217.61
7.0.80.0070.04217.50
7.0.70.0100.03717.64
7.0.60.0180.03517.76
7.0.50.0150.04317.80
7.0.40.0070.04316.70
7.0.30.0070.04616.73
7.0.20.0070.03716.75
7.0.10.0090.04416.78
7.0.00.0090.04216.70
5.6.400.0070.00714.16
5.6.390.0040.01114.37
5.6.380.0030.01014.29
5.6.370.0090.00614.61
5.6.360.0110.00414.07
5.6.350.0060.00614.25
5.6.340.0030.00614.38
5.6.330.0040.01114.63
5.6.320.0110.00714.41
5.6.310.0070.00714.45
5.6.300.0000.01414.60
5.6.290.0060.00614.29
5.6.280.0020.04417.69
5.6.270.0030.01014.17
5.6.260.0060.00914.49
5.6.250.0080.02817.58
5.6.240.0060.03617.46
5.6.230.0070.04317.62
5.6.220.0030.04917.60
5.6.210.0130.04117.59
5.6.200.0080.03817.66
5.6.190.0030.02617.69
5.6.180.0100.04317.67
5.6.170.0160.03817.89
5.6.160.0070.04717.82
5.6.150.0020.04917.64
5.6.140.0100.03117.66
5.6.130.0060.03617.66
5.6.120.0110.03917.81
5.6.110.0080.04817.68
5.6.100.0080.03017.56
5.6.90.0110.04317.68
5.6.80.0050.04117.49
5.6.70.0020.03317.35
5.6.60.0070.04717.36
5.6.50.0030.05217.58
5.6.40.0030.04217.36
5.6.30.0030.04017.39
5.6.20.0080.03817.31
5.6.10.0050.04417.37
5.6.00.0120.03817.42
5.5.380.0080.04617.31
5.5.370.0090.04117.48
5.5.360.0050.04717.32
5.5.350.0100.04317.33
5.5.340.0070.04217.47
5.5.330.0070.04217.51
5.5.320.0050.03017.77
5.5.310.0070.04117.68
5.5.300.0060.03117.55
5.5.290.0020.04917.63
5.5.280.0020.05017.71
5.5.270.0070.04717.68
5.5.260.0070.03617.41
5.5.250.0080.04217.52
5.5.240.0030.03317.37
5.5.230.0120.03817.28
5.5.220.0120.04017.36
5.5.210.0100.03717.34
5.5.200.0060.04017.17
5.5.190.0080.03817.20
5.5.180.0030.04317.19
5.5.170.0040.01114.35
5.5.160.0100.04017.28
5.5.150.0030.04517.25
5.5.140.0050.02917.08
5.5.130.0110.04117.37
5.5.120.0130.03617.33
5.5.110.0030.04217.22
5.5.100.0050.02917.22
5.5.90.0070.03817.20
5.5.80.0070.04217.08
5.5.70.0070.03417.14
5.5.60.0080.03817.10
5.5.50.0120.03817.18
5.5.40.0050.04317.09
5.5.30.0040.04417.33
5.5.20.0120.03817.08
5.5.10.0050.04917.09
5.5.00.0080.03617.31
5.4.450.0080.04315.30
5.4.440.0070.04015.14
5.4.430.0100.03415.31
5.4.420.0070.04715.31
5.4.410.0020.04415.30
5.4.400.0100.03315.04
5.4.390.0070.03715.21
5.4.380.0060.04614.91
5.4.370.0100.03215.18
5.4.360.0050.04314.98
5.4.350.0060.02714.98
5.4.340.0050.02814.96
5.4.330.0070.00311.06
5.4.320.0050.04314.99
5.4.310.0030.02314.93
5.4.300.0080.04115.04
5.4.290.0090.03714.82
5.4.280.0150.03514.99
5.4.270.0030.03514.94
5.4.260.0070.04015.03
5.4.250.0050.04115.05
5.4.240.0020.04515.02
5.4.230.0080.04015.13
5.4.220.0020.02814.96
5.4.210.0070.03814.90
5.4.200.0030.03814.89
5.4.190.0070.03814.98
5.4.180.0100.03715.04
5.4.170.0090.03515.09
5.4.160.0040.04214.96
5.4.150.0100.03814.94
5.4.140.0050.03713.70
5.4.130.0060.03913.76
5.4.120.0060.02613.60
5.4.110.0000.04413.73
5.4.100.0000.04213.56
5.4.90.0080.03613.64
5.4.80.0020.04513.76
5.4.70.0020.04013.71
5.4.60.0050.02213.83
5.4.50.0050.03013.73
5.4.40.0050.03813.65
5.4.30.0090.03113.78
5.4.20.0070.02213.72
5.4.10.0050.04013.68
5.4.00.0050.03913.22
5.3.290.0080.04012.56
5.3.280.0070.03512.50
5.3.270.0030.04212.58
5.3.260.0090.02612.60
5.3.250.0030.04112.50
5.3.240.0070.03712.50
5.3.230.0050.04112.55
5.3.220.0030.03812.45
5.3.210.0020.03912.49
5.3.200.0020.03012.43
5.3.190.0050.04212.44
5.3.180.0080.04112.48
5.3.170.0050.03912.59
5.3.160.0020.02712.55
5.3.150.0060.03812.57
5.3.140.0030.04112.62
5.3.130.0070.04112.52
5.3.120.0040.04112.41
5.3.110.0050.02812.41
5.3.100.0050.03912.28
5.3.90.0020.03612.29
5.3.80.0100.03312.18
5.3.70.0090.03512.15
5.3.60.0050.03212.25
5.3.50.0080.04012.22
5.3.40.0040.03812.09
5.3.30.0080.03112.04
5.3.20.0030.04111.98
5.3.10.0030.03311.96
5.3.00.0050.03211.90
5.2.170.0070.06012.62
5.2.160.0100.03312.62
5.2.150.0100.04012.62
5.2.140.0170.04712.62
5.2.130.0100.04712.62
5.2.120.0130.03712.62
5.2.110.0030.05012.62
5.2.100.0130.05312.62
5.2.90.0100.05712.62
5.2.80.0070.06712.62
5.2.70.0070.04012.62
5.2.60.0070.06312.62
5.2.50.0030.05012.62
5.2.40.0000.05712.62
5.2.30.0070.03712.62
5.2.20.0030.05012.62
5.2.10.0030.02712.62
5.2.00.0000.03012.62
5.1.60.0070.02712.62
5.1.50.0070.02312.62
5.1.40.0000.02712.62
5.1.30.0030.02712.62
5.1.20.0030.02712.62
5.1.10.0000.03012.62
5.1.00.0000.02712.62
5.0.50.0030.02012.62
5.0.40.0070.01312.62
5.0.30.0070.02712.62
5.0.20.0000.02012.62
5.0.10.0000.02012.62
5.0.00.0000.03012.62
4.4.90.0000.03712.62
4.4.80.0000.04012.62
4.4.70.0000.04012.62
4.4.60.0000.02712.62
4.4.50.0030.01712.62
4.4.40.0000.03012.62
4.4.30.0070.01712.62
4.4.20.0030.01712.62
4.4.10.0030.01312.62
4.4.00.0030.02012.62
4.3.110.0000.01712.62
4.3.100.0000.01712.62
4.3.90.0030.01312.62
4.3.80.0000.02312.62
4.3.70.0030.01312.62
4.3.60.0030.01312.62
4.3.50.0000.01712.62
4.3.40.0000.04012.62
4.3.30.0000.01312.62
4.3.20.0030.01312.62
4.3.10.0030.02312.62
4.3.00.0000.02312.62

preferences:
91.22 ms | 401 KiB | 5 Q