3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $length = $_GET['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,$length*$length),0)))); } $pass = str_split($pass);shuffle($pass);$pass=implode($pass); $r = rand(0,strlen($pass)-$length); echo substr($pass,$r,$length);
Output for 7.1.0
Notice: Undefined index: length in /in/S461R on line 2 PsR6GadM
Output for 7.0.14
Notice: Undefined index: length in /in/S461R on line 2 B5oxpyHg
Output for 7.0.6
Notice: Undefined index: length in /in/S461R on line 2 U6IB8ASP
Output for 7.0.5
Notice: Undefined index: length in /in/S461R on line 2 CwRyjOpU
Output for 7.0.4
Notice: Undefined index: length in /in/S461R on line 2 531qMilr
Output for 7.0.3
Notice: Undefined index: length in /in/S461R on line 2 vTSIMAlO
Output for 7.0.2
Notice: Undefined index: length in /in/S461R on line 2 x2N4x9p3
Output for 7.0.1
Notice: Undefined index: length in /in/S461R on line 2 iTOj01SK
Output for 7.0.0
Notice: Undefined index: length in /in/S461R on line 2 wQQIIDlO
Output for 5.6.28
Notice: Undefined index: length in /in/S461R on line 2 MekeVz1k
Output for 5.6.21
Notice: Undefined index: length in /in/S461R on line 2 SOvRbxj9
Output for 5.6.20
Notice: Undefined index: length in /in/S461R on line 2 WduBNFqY
Output for 5.6.19
Notice: Undefined index: length in /in/S461R on line 2 JVLJ5lxr
Output for 5.6.18
Notice: Undefined index: length in /in/S461R on line 2 Zs1GCVPY
Output for 5.6.17
Notice: Undefined index: length in /in/S461R on line 2 UPslPRmM
Output for 5.6.16
Notice: Undefined index: length in /in/S461R on line 2 wlOKgRYN
Output for 5.6.15
Notice: Undefined index: length in /in/S461R on line 2 kEo63yyT
Output for 5.6.14
Notice: Undefined index: length in /in/S461R on line 2 CONTrFxr
Output for 5.6.13
Notice: Undefined index: length in /in/S461R on line 2 AyIhG1ty
Output for 5.6.12
Notice: Undefined index: length in /in/S461R on line 2 h8QzvapB
Output for 5.6.11
Notice: Undefined index: length in /in/S461R on line 2 lRd07pDc
Output for 5.6.10
Notice: Undefined index: length in /in/S461R on line 2 HEUiIAEU
Output for 5.6.9
Notice: Undefined index: length in /in/S461R on line 2 m2dNVr1s
Output for 5.6.8
Notice: Undefined index: length in /in/S461R on line 2 hr3MMOBe
Output for 5.6.7
Notice: Undefined index: length in /in/S461R on line 2 4yIYsdjp
Output for 5.5.35
Notice: Undefined index: length in /in/S461R on line 2 Xa1oGDZC
Output for 5.5.34
Notice: Undefined index: length in /in/S461R on line 2 WDBtJTRE
Output for 5.5.33
Notice: Undefined index: length in /in/S461R on line 2 eWc1I0dZ
Output for 5.5.32
Notice: Undefined index: length in /in/S461R on line 2 yf3w6G1s
Output for 5.5.31
Notice: Undefined index: length in /in/S461R on line 2 zAR5JEE2
Output for 5.5.30
Notice: Undefined index: length in /in/S461R on line 2 uqYLZrbS
Output for 5.5.29
Notice: Undefined index: length in /in/S461R on line 2 gQ1AIJXh
Output for 5.5.28
Notice: Undefined index: length in /in/S461R on line 2 Ul2qYisA
Output for 5.5.27
Notice: Undefined index: length in /in/S461R on line 2 TlTlkPtm
Output for 5.5.26
Notice: Undefined index: length in /in/S461R on line 2 0HQmkWM7
Output for 5.5.25
Notice: Undefined index: length in /in/S461R on line 2 tWxoH4ey
Output for 5.5.24
Notice: Undefined index: length in /in/S461R on line 2 tNj3l1Cr
Output for 5.4.45
Notice: Undefined index: length in /in/S461R on line 2 UuqCCwp9
Output for 5.4.44
Notice: Undefined index: length in /in/S461R on line 2 EC3NsFNs
Output for 5.4.43
Notice: Undefined index: length in /in/S461R on line 2 MCkoKkHA
Output for 5.4.42
Notice: Undefined index: length in /in/S461R on line 2 fOBteFBM
Output for 5.4.41
Notice: Undefined index: length in /in/S461R on line 2 VJBqnLnI
Output for 5.4.40
Notice: Undefined index: length in /in/S461R on line 2 XWBJzpBb
Output for 5.4.39
Notice: Undefined index: length in /in/S461R on line 2 CNuIyDQY
Output for 5.4.38
Notice: Undefined index: length in /in/S461R on line 2 bCiYGuz4
Output for 5.4.37
Notice: Undefined index: length in /in/S461R on line 2 73welGSc
Output for 5.4.36
Notice: Undefined index: length in /in/S461R on line 2 cQAbqOde
Output for 5.4.35
Notice: Undefined index: length in /in/S461R on line 2 Y9N9xB9i
Output for 5.4.34
Notice: Undefined index: length in /in/S461R on line 2 PrDRZSRa
Output for 5.4.32
Notice: Undefined index: length in /in/S461R on line 2 wD2JZymU
Output for 5.4.31
Notice: Undefined index: length in /in/S461R on line 2 wk4fxg5l
Output for 5.4.30
Notice: Undefined index: length in /in/S461R on line 2 0QvuPX3v
Output for 5.4.29
Notice: Undefined index: length in /in/S461R on line 2 IGlr9vov
Output for 5.4.28
Notice: Undefined index: length in /in/S461R on line 2 XmTO3f0o
Output for 5.4.27
Notice: Undefined index: length in /in/S461R on line 2 X0Ighyj5
Output for 5.4.26
Notice: Undefined index: length in /in/S461R on line 2 KYwuLsZU
Output for 5.4.25
Notice: Undefined index: length in /in/S461R on line 2 dpLk7JY9
Output for 5.4.24
Notice: Undefined index: length in /in/S461R on line 2 Dc0bWbEK
Output for 5.4.23
Notice: Undefined index: length in /in/S461R on line 2 tcU2grbq
Output for 5.4.22
Notice: Undefined index: length in /in/S461R on line 2 JOO5NMJf
Output for 5.4.21
Notice: Undefined index: length in /in/S461R on line 2 KSxE4AfY
Output for 5.4.20
Notice: Undefined index: length in /in/S461R on line 2 l747UdtJ
Output for 5.4.19
Notice: Undefined index: length in /in/S461R on line 2 Gq8Lle57
Output for 5.4.18
Notice: Undefined index: length in /in/S461R on line 2 PPwhzlDY
Output for 5.4.17
Notice: Undefined index: length in /in/S461R on line 2 XOG98rjP
Output for 5.4.16
Notice: Undefined index: length in /in/S461R on line 2 ZaXWzdcE
Output for 5.4.15
Notice: Undefined index: length in /in/S461R on line 2 AAXe9G4P
Output for 5.4.14
Notice: Undefined index: length in /in/S461R on line 2 cb7fwz0D
Output for 5.4.13
Notice: Undefined index: length in /in/S461R on line 2 SdyTek0G
Output for 5.4.12
Notice: Undefined index: length in /in/S461R on line 2 eXs56NOs
Output for 5.4.11
Notice: Undefined index: length in /in/S461R on line 2 mc0IZsQC
Output for 5.4.10
Notice: Undefined index: length in /in/S461R on line 2 xoU3FDkJ
Output for 5.4.9
Notice: Undefined index: length in /in/S461R on line 2 EuqMVOwq
Output for 5.4.8
Notice: Undefined index: length in /in/S461R on line 2 eRVMve7T
Output for 5.4.7
Notice: Undefined index: length in /in/S461R on line 2 zBizdD9L
Output for 5.4.6
Notice: Undefined index: length in /in/S461R on line 2 J0KWeX7d
Output for 5.4.5
Notice: Undefined index: length in /in/S461R on line 2 v8ZtKjB7
Output for 5.4.4
Notice: Undefined index: length in /in/S461R on line 2 F9EA6k9u
Output for 5.4.3
Notice: Undefined index: length in /in/S461R on line 2 6tBiLKY0
Output for 5.4.2
Notice: Undefined index: length in /in/S461R on line 2 MZBuaOuU
Output for 5.4.1
Notice: Undefined index: length in /in/S461R on line 2 JloWsSID
Output for 5.4.0
Notice: Undefined index: length in /in/S461R on line 2 0vlP1Ak8
Output for 5.3.29
Notice: Undefined index: length in /in/S461R on line 2 76jT3MIE
Output for 5.3.28
Notice: Undefined index: length in /in/S461R on line 2 EWdGw8HL
Output for 5.3.27
Notice: Undefined index: length in /in/S461R on line 2 YFwcNfsV
Output for 5.3.26
Notice: Undefined index: length in /in/S461R on line 2 FzaF7PxX
Output for 5.3.25
Notice: Undefined index: length in /in/S461R on line 2 VC1XKHq4
Output for 5.3.24
Notice: Undefined index: length in /in/S461R on line 2 0982qBIZ
Output for 5.3.23
Notice: Undefined index: length in /in/S461R on line 2 mesGOy72
Output for 5.3.22
Notice: Undefined index: length in /in/S461R on line 2 LqudM1Ct
Output for 5.3.21
Notice: Undefined index: length in /in/S461R on line 2 UF2IN4Rr
Output for 5.3.20
Notice: Undefined index: length in /in/S461R on line 2 StJjdJuo
Output for 5.3.19
Notice: Undefined index: length in /in/S461R on line 2 HnwGt8JB
Output for 5.3.18
Notice: Undefined index: length in /in/S461R on line 2 yfpG6dB7
Output for 5.3.17
Notice: Undefined index: length in /in/S461R on line 2 71wFSqtZ
Output for 5.3.16
Notice: Undefined index: length in /in/S461R on line 2 4hK9JT54
Output for 5.3.15
Notice: Undefined index: length in /in/S461R on line 2 XgX5olRQ
Output for 5.3.14
Notice: Undefined index: length in /in/S461R on line 2 NlB8rOWC
Output for 5.3.13
Notice: Undefined index: length in /in/S461R on line 2 y8zTZWv5
Output for 5.3.12
Notice: Undefined index: length in /in/S461R on line 2 fYzP5K2s
Output for 5.3.11
Notice: Undefined index: length in /in/S461R on line 2 R4yNvW0y
Output for 5.3.10
Notice: Undefined index: length in /in/S461R on line 2 Dn4LbhXa
Output for 5.3.9
Notice: Undefined index: length in /in/S461R on line 2 r0N8VpPT
Output for 5.3.8
Notice: Undefined index: length in /in/S461R on line 2 Z1X8HkeS
Output for 5.3.7
Notice: Undefined index: length in /in/S461R on line 2 KpWZm9Yr
Output for 5.3.6
Notice: Undefined index: length in /in/S461R on line 2 p3aRmJzm
Output for 5.3.5
Notice: Undefined index: length in /in/S461R on line 2 phSahLgB
Output for 5.3.4
Notice: Undefined index: length in /in/S461R on line 2 t7UVtr2z
Output for 5.3.3
Notice: Undefined index: length in /in/S461R on line 2 iA1tS4yG
Output for 5.3.2
Notice: Undefined index: length in /in/S461R on line 2 tnDl6zcA
Output for 5.3.1
Notice: Undefined index: length in /in/S461R on line 2 TjJdSFaR
Output for 5.3.0
Notice: Undefined index: length in /in/S461R on line 2 ivMp8VSV
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/S461R on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected ':' in /in/S461R on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/S461R on line 2
Process exited with code 255.