3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 10; $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.0090.00914.94
7.4.00.0110.00615.04
7.3.130.0070.01014.88
7.3.120.0030.01415.05
7.3.110.0060.01315.05
7.3.100.0100.00614.98
7.3.90.0060.00615.15
7.3.80.0030.00614.87
7.3.70.0030.01214.89
7.3.60.0030.01414.94
7.3.50.0030.01014.91
7.3.40.0060.00314.98
7.3.30.0030.01214.79
7.3.20.0040.01116.68
7.3.10.0140.00016.34
7.3.00.0080.00816.69
7.2.260.0040.01115.17
7.2.250.0110.00715.20
7.2.240.0060.00915.29
7.2.230.0040.00714.84
7.2.220.0090.00315.20
7.2.210.0060.01114.78
7.2.200.0070.00715.07
7.2.190.0060.00914.92
7.2.180.0040.00815.05
7.2.170.0070.00715.14
7.2.160.0040.01415.22
7.2.150.0100.00617.07
7.2.140.0070.00717.16
7.2.130.0070.00716.98
7.2.120.0060.00616.95
7.2.110.0070.00716.94
7.2.100.0080.00616.83
7.2.90.0060.00917.10
7.2.80.0000.01416.73
7.2.70.0100.00717.08
7.2.60.0070.00717.04
7.2.50.0000.01216.87
7.2.40.0080.00416.86
7.2.30.0040.01216.89
7.2.20.0060.00917.07
7.2.10.0070.01016.95
7.2.00.0040.01118.18
7.1.330.0030.01215.74
7.1.320.0090.00615.76
7.1.310.0040.01115.54
7.1.300.0040.00715.57
7.1.290.0030.01015.79
7.1.280.0040.01115.89
7.1.270.0100.00315.75
7.1.260.0060.00615.72
7.1.250.0030.01315.87
7.1.240.0080.00415.84
7.1.230.0110.00415.91
7.1.220.0070.00715.96
7.1.210.0000.01115.86
7.1.200.0090.00615.77
7.1.190.0030.01215.98
7.1.180.0080.00415.66
7.1.170.0040.01115.74
7.1.160.0060.00615.87
7.1.150.0080.00415.89
7.1.140.0030.00715.99
7.1.130.0100.00015.95
7.1.120.0100.00315.59
7.1.110.0000.01115.97
7.1.100.0100.00315.74
7.1.90.0040.01115.54
7.1.80.0030.01215.96
7.1.70.0050.00816.53
7.1.60.0070.01317.76
7.1.50.0050.01416.31
7.1.40.0000.01415.74
7.1.30.0060.00615.64
7.1.20.0030.00715.80
7.1.10.0110.00315.47
7.1.00.0050.04219.14
7.0.330.0030.01015.51
7.0.320.0030.01015.09
7.0.310.0060.00915.39
7.0.300.0040.00715.22
7.0.290.0090.00315.54
7.0.280.0070.01015.39
7.0.270.0000.01215.19
7.0.260.0000.01415.48
7.0.250.0040.00815.35
7.0.240.0040.01215.54
7.0.230.0030.01315.44
7.0.220.0080.00015.34
7.0.210.0030.01015.55
7.0.200.0040.00716.08
7.0.190.0030.01315.30
7.0.180.0030.01015.52
7.0.170.0030.00715.59
7.0.160.0040.00715.46
7.0.150.0070.00715.52
7.0.140.0050.03918.64
7.0.130.0060.00615.21
7.0.120.0030.01015.37
7.0.110.0060.00615.55
7.0.100.0090.00315.45
7.0.90.0000.01315.43
7.0.80.0100.00315.43
7.0.70.0030.01315.43
7.0.60.0210.03017.68
7.0.50.0050.04116.64
7.0.40.0100.04616.93
7.0.30.0280.03516.75
7.0.20.0150.03316.90
7.0.10.0070.03216.71
7.0.00.0090.04216.80
5.6.400.0000.01214.30
5.6.390.0000.01114.31
5.6.380.0030.00614.48
5.6.370.0100.00614.36
5.6.360.0090.00614.34
5.6.350.0080.00614.47
5.6.340.0060.00914.40
5.6.330.0080.00414.37
5.6.320.0000.01514.48
5.6.310.0000.00914.42
5.6.300.0090.00314.42
5.6.290.0080.00814.55
5.6.280.0020.04217.70
5.6.270.0090.00614.34
5.6.260.0000.01014.32
5.6.250.0080.00614.16
5.6.240.0070.00414.71
5.6.230.0090.00314.64
5.6.220.0000.01814.25
5.6.210.0100.03517.51
5.6.200.0000.03116.19
5.6.190.0060.04617.37
5.6.180.0150.02617.32
5.6.170.0160.03017.49
5.6.160.0060.03317.47
5.6.150.0080.01916.35
5.6.140.0070.02416.34
5.6.130.0120.02716.29
5.6.120.0070.03417.95
5.6.110.0080.03117.65
5.6.100.0080.03917.73
5.6.90.0080.04317.55
5.6.80.0070.04217.46
5.6.70.0070.00314.30
5.6.60.0060.00614.13
5.6.50.0040.00414.51
5.6.40.0040.00814.29
5.6.30.0060.00614.17
5.6.20.0030.00614.27
5.6.10.0100.00314.32
5.6.00.0020.00914.31
5.5.380.0090.00014.31
5.5.370.0040.01114.24
5.5.360.0060.00814.33
5.5.350.2180.02317.35
5.5.340.0080.01916.16
5.5.330.0020.03117.22
5.5.320.0140.02217.39
5.5.310.0200.02717.25
5.5.300.0120.01816.30
5.5.290.0050.04316.14
5.5.280.0040.03917.66
5.5.270.0050.02317.82
5.5.260.0050.02517.70
5.5.250.0110.04317.39
5.5.240.0090.03417.20
5.5.230.0000.01114.12
5.5.220.0030.00814.54
5.5.210.0060.00614.30
5.5.200.0040.01114.28
5.5.190.0170.00014.13
5.5.180.0030.00714.16
5.5.170.0030.01214.57
5.5.160.0110.00313.91
5.5.150.0030.00914.38
5.5.140.0070.01014.45
5.5.130.0090.00614.12
5.5.120.0000.01314.45
5.5.110.0030.01014.13
5.5.100.0030.00914.10
5.5.90.0030.00914.41
5.5.80.0060.00614.42
5.5.70.0040.01214.38
5.5.60.0000.01614.24
5.5.50.0030.00914.11
5.5.40.0100.00314.35
5.5.30.0100.00414.18
5.5.20.0040.01114.15
5.5.10.0060.01014.45
5.5.00.0040.01413.76
5.4.450.0890.03215.32
5.4.440.0050.03815.42
5.4.430.0670.02715.29
5.4.420.1750.02615.37
5.4.410.1730.01715.26
5.4.400.1830.02515.11
5.4.390.1780.01815.25
5.4.380.2020.02415.21
5.4.370.1980.02215.07
5.4.360.2100.02315.13
5.4.350.2340.01815.06
5.4.340.2270.02615.13
5.4.330.0070.00711.27
5.4.320.2170.02415.18
5.4.310.2270.02015.13
5.4.300.2100.02315.15
5.4.290.1850.02515.19
5.4.280.2210.02115.22
5.4.270.2650.01715.20
5.4.260.2310.02015.20
5.4.250.1900.01815.16
5.4.240.2270.01815.16
5.4.230.2150.02015.09
5.4.220.2230.02715.17
5.4.210.2160.01815.21
5.4.200.2080.02515.15
5.4.190.2300.02315.15
5.4.180.1990.02115.19
5.4.170.2070.02215.20
5.4.160.1850.02115.20
5.4.150.1870.01815.21
5.4.140.1870.01713.76
5.4.130.2220.02313.86
5.4.120.2330.02013.79
5.4.110.2290.02013.88
5.4.100.2340.02013.79
5.4.90.2350.02113.89
5.4.80.2110.02413.86
5.4.70.2330.01813.79
5.4.60.2330.02113.85
5.4.50.2280.02313.76
5.4.40.2130.02313.87
5.4.30.1730.02313.94
5.4.20.2070.02213.78
5.4.10.2720.02713.77
5.4.00.2030.01813.59
5.3.290.2010.02112.94
5.3.280.1990.02112.95
5.3.270.2330.02012.92
5.3.260.1900.02312.87
5.3.250.2100.02212.92
5.3.240.2380.02312.93
5.3.230.2260.02312.95
5.3.220.2070.02912.92
5.3.210.2320.02012.83
5.3.200.2330.02312.85
5.3.190.1910.02112.90
5.3.180.2320.02212.90
5.3.170.2310.02512.91
5.3.160.2130.02412.90
5.3.150.2240.02112.91
5.3.140.2300.02212.83
5.3.130.2030.02812.88
5.3.120.1810.02112.84
5.3.110.1890.01912.89
5.3.100.1990.02012.66
5.3.90.2310.02112.64
5.3.80.2150.02112.56
5.3.70.1820.02012.63
5.3.60.2290.02512.55
5.3.50.2050.02012.57
5.3.40.1860.01812.59
5.3.30.2480.02112.57
5.3.20.1870.02012.40
5.3.10.2120.02312.38
5.3.00.2100.02512.45
5.2.170.2800.03011.16
5.2.160.2770.02711.13
5.2.150.3100.02711.12
5.2.140.3100.03011.12
5.2.130.3870.03011.23
5.2.120.3000.03310.98
5.2.110.2900.02311.22
5.2.100.3000.03011.31
5.2.90.0030.02711.14
5.2.80.0000.03011.22
5.2.70.0030.02711.09
5.2.60.0630.03010.94
5.2.50.2900.03010.96
5.2.40.2400.02010.93
5.2.30.2700.02710.91
5.2.20.2800.03010.90
5.2.10.2400.03310.94
5.2.00.3100.03310.77
5.1.60.3170.0239.96
5.1.50.2730.02710.10
5.1.40.2470.02710.09
5.1.30.2900.02310.28
5.1.20.2700.02310.31
5.1.10.2470.02310.12
5.1.00.2770.02310.12
5.0.50.1530.0238.58
5.0.40.1470.0208.46
5.0.30.1230.0308.28
5.0.20.1470.0208.33
5.0.10.1070.0208.13
5.0.00.1130.0478.19
4.4.90.0000.0176.05
4.4.80.1200.0136.05
4.4.70.1230.0176.05
4.4.60.1230.0176.05
4.4.50.1400.0136.05
4.4.40.1970.0276.05
4.4.30.1700.0176.05
4.4.20.1170.0136.05
4.4.10.1570.0176.05
4.4.00.1270.0206.05
4.3.110.1430.0176.05
4.3.100.1200.0136.05
4.3.90.1270.0176.05
4.3.80.0100.0476.05
4.3.70.0030.0376.05
4.3.60.0000.0406.05
4.3.50.0000.0306.05
4.3.40.0000.0406.05
4.3.30.0030.0276.05
4.3.20.0000.0276.05
4.3.10.0030.0306.05
4.3.00.0030.0176.05

preferences:
39.19 ms | 401 KiB | 5 Q