3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 128; $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.50.0040.01916.49
7.4.10.0000.01515.17
7.4.00.0000.01615.02
7.3.130.0130.00614.43
7.3.120.0070.01114.98
7.3.110.0090.00614.77
7.3.100.0060.00914.90
7.3.90.0060.00614.77
7.3.80.0060.00614.94
7.3.70.0090.00614.79
7.3.60.0050.01014.86
7.3.50.0040.00714.87
7.3.40.0000.01414.90
7.3.30.0140.00015.01
7.3.20.0090.00316.80
7.3.10.0070.00716.64
7.3.00.0050.00716.64
7.2.260.0030.01315.30
7.2.250.0070.01315.11
7.2.240.0040.01514.96
7.2.230.0000.01515.09
7.2.220.0000.00915.20
7.2.210.0040.00814.91
7.2.200.0060.00914.96
7.2.190.0060.00615.04
7.2.180.0130.00315.13
7.2.170.0060.00915.17
7.2.160.0040.01115.15
7.2.150.0100.00317.20
7.2.140.0080.00816.86
7.2.130.0060.00916.99
7.2.120.0030.00817.02
7.2.110.0060.00616.86
7.2.100.0090.00616.89
7.2.90.0080.00516.86
7.2.80.0050.01016.91
7.2.70.0080.00816.77
7.2.60.0060.01017.02
7.2.50.0060.01016.97
7.2.40.0050.01016.88
7.2.30.0050.00717.09
7.2.20.0100.00317.03
7.2.10.0000.01416.91
7.2.00.0050.00917.80
7.1.330.0060.00915.76
7.1.320.0060.00615.79
7.1.310.0110.00415.97
7.1.300.0070.00715.76
7.1.290.0040.00415.48
7.1.280.0070.01015.86
7.1.270.0090.00315.67
7.1.260.0110.00415.87
7.1.250.0030.01015.85
7.1.240.0070.00715.72
7.1.230.0030.00915.87
7.1.220.0060.01015.72
7.1.210.0090.00615.91
7.1.200.0030.01315.75
7.1.190.0070.01015.87
7.1.180.0090.00615.60
7.1.170.0060.01215.98
7.1.160.0070.00715.92
7.1.150.0100.00315.46
7.1.140.0030.00615.75
7.1.130.0000.01515.85
7.1.120.0060.00815.61
7.1.110.0040.00415.75
7.1.100.0080.00815.69
7.1.90.0040.01215.88
7.1.80.0090.00315.93
7.1.70.0030.00716.60
7.1.60.0050.00516.48
7.1.50.0060.00716.69
7.1.40.0020.01316.50
7.1.30.0090.00316.57
7.1.20.0030.00816.58
7.1.10.0050.00816.67
7.1.00.0000.01316.69
7.0.330.0040.00715.07
7.0.320.0030.01215.14
7.0.310.0070.00715.57
7.0.300.0030.01415.60
7.0.290.0110.00415.39
7.0.280.0100.00315.26
7.0.270.0110.00415.42
7.0.260.0040.00415.32
7.0.250.0030.00515.63
7.0.240.0090.00315.49
7.0.230.0040.01215.32
7.0.220.0030.00915.22
7.0.210.0090.00615.67
7.0.200.0080.00316.38
7.0.190.0050.00716.47
7.0.180.0020.00616.44
7.0.170.0050.00516.31
7.0.160.0050.00516.50
7.0.150.0040.00816.46
7.0.140.0020.00916.44
7.0.130.0050.00616.35
7.0.120.0060.00516.47
7.0.110.0030.00616.46
7.0.100.0060.00616.30
7.0.90.0070.00316.33
7.0.80.0050.00616.50
7.0.70.0050.00716.34
7.0.60.0020.00916.47
7.0.50.0040.00416.44
7.0.40.0060.00515.41
7.0.30.0030.00715.46
7.0.20.0020.01015.53
7.0.10.0040.00815.50
7.0.00.0050.00615.49
5.6.400.0100.00314.34
5.6.390.0030.01014.29
5.6.380.0090.00614.43
5.6.370.0100.00614.43
5.6.360.0000.01114.60
5.6.350.0030.00914.16
5.6.340.0060.00914.62
5.6.330.0060.01214.30
5.6.320.0090.00614.15
5.6.310.0040.01114.41
5.6.300.0070.02717.80
5.6.290.0030.02817.64
5.6.280.0030.02817.61
5.6.270.0080.02117.78
5.6.260.0020.02717.69
5.6.250.0030.02717.88
5.6.240.0070.02617.78
5.6.230.0030.02717.65
5.6.220.0050.03217.75
5.6.210.0060.02317.80
5.6.200.0030.03217.74
5.6.190.0020.03017.50
5.6.180.0020.02817.59
5.6.170.0070.02117.63
5.6.160.0050.02717.81
5.6.150.0090.03817.72
5.6.140.0000.02617.61
5.6.130.0020.02817.66
5.6.120.0090.03417.72
5.6.110.0020.03217.65
5.6.100.0020.03517.67
5.6.90.0070.02417.66
5.6.80.0070.02217.17
5.6.70.0090.02017.25
5.6.60.0020.02417.24
5.6.50.0050.02517.35
5.6.40.0040.04317.41
5.6.30.0070.02417.13
5.6.20.0020.02917.22
5.6.10.0100.01917.30
5.6.00.0100.02017.39
5.5.380.0050.02516.03
5.5.370.0060.02116.03
5.5.360.0100.02315.82
5.5.350.0030.02515.99
5.5.340.0080.02216.28
5.5.330.0030.02616.12
5.5.320.0070.01916.04
5.5.310.0070.02516.33
5.5.300.0050.02516.13
5.5.290.0090.02316.18
5.5.280.0060.02816.14
5.5.270.0020.03116.30
5.5.260.0040.02316.18
5.5.250.0060.02416.11
5.5.240.0050.02615.76
5.5.230.0050.02415.86
5.5.220.0050.02515.82
5.5.210.0040.02615.80
5.5.200.0050.02315.82
5.5.190.0070.02315.89
5.5.180.0020.02715.90
5.5.170.0070.00714.37
5.5.160.0040.02415.87
5.5.150.0070.02015.87
5.5.140.0040.02215.92
5.5.130.0030.02715.80
5.5.120.0070.02215.92
5.5.110.0050.02215.94
5.5.100.0020.03115.74
5.5.90.0030.02515.75
5.5.80.0050.02115.76
5.5.70.0080.02115.81
5.5.60.0040.02515.93
5.5.50.0030.02615.94
5.5.40.0050.02215.93
5.5.30.0000.02615.79
5.5.20.0030.03715.64
5.5.10.0070.02315.68
5.5.00.0040.02415.81
5.4.450.0050.02215.79
5.4.440.0090.02215.75
5.4.430.0050.02315.76
5.4.420.0060.02515.88
5.4.410.0050.02215.84
5.4.400.0050.02515.66
5.4.390.0030.02015.60
5.4.380.0030.02315.70
5.4.370.0040.02215.67
5.4.360.0020.02315.66
5.4.350.0030.02315.69
5.4.340.0050.02115.67
5.4.330.0030.00912.33
5.4.320.0030.02215.67
5.4.310.0050.04215.63
5.4.300.0130.02515.69
5.4.290.0030.02115.76
5.4.280.0030.02315.70
5.4.270.0020.02215.62
5.4.260.0030.02215.72
5.4.250.0040.02515.58
5.4.240.0030.02315.62
5.4.230.0020.02315.70
5.4.220.0060.02215.67
5.4.210.0030.02615.66
5.4.200.0050.02115.66
5.4.190.0080.02715.64
5.4.180.0060.02315.59
5.4.170.0020.02215.71
5.4.160.0020.02415.68
5.4.150.0030.02615.72
5.4.140.0050.02214.87
5.4.130.0020.02314.87
5.4.120.0050.02314.87
5.4.110.0060.02414.87
5.4.100.0040.02114.87
5.4.90.0020.02214.87
5.4.80.0040.02114.87
5.4.70.0000.02514.87
5.4.60.0020.02914.87
5.4.50.0030.02114.87
5.4.40.0090.01414.87
5.4.30.0010.02314.87
5.4.20.0050.01914.87
5.4.10.0030.04214.87
5.4.00.0110.02114.87
5.3.290.0030.02614.87
5.3.280.0020.02414.87
5.3.270.0020.02814.87
5.3.260.0010.02414.87
5.3.250.0020.02814.87
5.3.240.0000.02714.87
5.3.230.0020.02614.87
5.3.220.0050.02514.87
5.3.210.0010.02314.87
5.3.200.0020.02314.87
5.3.190.0020.02614.87
5.3.180.0060.01914.87
5.3.170.0060.02114.87
5.3.160.0020.02614.87
5.3.150.0030.02114.87
5.3.140.0050.02014.87
5.3.130.0030.02214.87
5.3.120.0050.02114.87
5.3.110.0020.02514.87
5.3.100.0030.02114.87
5.3.90.0020.02414.87
5.3.80.0040.02214.87
5.3.70.0030.02314.87
5.3.60.0030.02014.87
5.3.50.0050.01814.87
5.3.40.0070.01614.87
5.3.30.0050.01714.87
5.3.20.0020.02314.87
5.3.10.0030.02014.87
5.3.00.0040.02214.87
5.2.170.0000.03417.41
5.2.160.0070.02317.41
5.2.150.0030.04117.41
5.2.140.0030.02917.41
5.2.130.0040.02917.41
5.2.120.0000.03417.41
5.2.110.0030.03017.41
5.2.100.0030.02717.41
5.2.90.0070.02317.41
5.2.80.0000.03417.41
5.2.70.0000.03217.41
5.2.60.0030.02717.41
5.2.50.0030.02817.41
5.2.40.0000.03117.41
5.2.30.0030.03117.41
5.2.20.0000.03217.41
5.2.10.0030.02817.41
5.2.00.0030.03017.41
5.1.60.0000.02517.41
5.1.50.0000.02717.41
5.1.40.0060.02517.41
5.1.30.0000.02717.41
5.1.20.0090.02817.41
5.1.10.0070.04917.41
5.1.00.0000.02917.41
5.0.50.0030.02017.41
5.0.40.0030.02217.41
5.0.30.0000.04617.41
5.0.20.0000.02417.41
5.0.10.0000.02217.41
5.0.00.0040.02817.41
4.4.90.0030.01317.41
4.4.80.0030.01317.41
4.4.70.0030.01517.41
4.4.60.0070.01717.41
4.4.50.0000.01817.41
4.4.40.0000.02517.41
4.4.30.0000.01617.41
4.4.20.0030.02117.41
4.4.10.0000.02417.41
4.4.00.0000.02917.41
4.3.110.0040.02517.41
4.3.100.0000.02217.41
4.3.90.0000.01917.41
4.3.80.0030.05117.41
4.3.70.0030.03317.41
4.3.60.0030.01717.41
4.3.50.0000.01617.41
4.3.40.0200.02317.41
4.3.30.0000.02017.41
4.3.20.0000.01817.41
4.3.10.0030.01617.41
4.3.00.0000.01817.41

preferences:
38.88 ms | 401 KiB | 5 Q