3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $length = 16; list($usec, $sec) = explode(' ', microtime()); mt_srand((float) $sec + ((float) $usec * 100000)); $inputs = array_merge(range('z','a'),range(0,9),range('A','Z')); for($i=0; $i<$length; $i++) { $key .= $inputs{mt_rand(0,61)}; } echo strtoupper($key);
based on WjiXP
Output for 7.2.6
Notice: Undefined variable: key in /in/gChCs on line 10 RLBVM8BQHIPHX2BF
Output for 7.2.0
Notice: Undefined variable: key in /in/gChCs on line 10 HY2BZHEGUIM72TXX
Output for 7.1.10
Notice: Undefined variable: key in /in/gChCs on line 10 17OWJGP7NBB71O7K
Output for 7.1.7
Notice: Undefined variable: key in /in/gChCs on line 10 DJ5B1VQ3INO9YFIM
Output for 7.1.6
Notice: Undefined variable: key in /in/gChCs on line 10 BKXKXTAYMMSXZQQV
Output for 7.1.5
Notice: Undefined variable: key in /in/gChCs on line 10 8UMZWBXPCCLZKYBG
Output for 7.1.4
Notice: Undefined variable: key in /in/gChCs on line 10 1CCF5WUANHMFOWLI
Output for 7.1.3
Notice: Undefined variable: key in /in/gChCs on line 10 TYJCPGDTEKJGYUYF
Output for 7.1.2
Notice: Undefined variable: key in /in/gChCs on line 10 X1FI7GXHHZPFVONE
Output for 7.1.1
Notice: Undefined variable: key in /in/gChCs on line 10 8D7IVUIUKHQCKOBU
Output for 7.1.0
Notice: Undefined variable: key in /in/gChCs on line 10 ITAVD2PZDKPJ7XKB
Output for 7.0.20
Notice: Undefined variable: key in /in/gChCs on line 10 LHE5UKOZYCDT6TSS
Output for 7.0.19
Notice: Undefined variable: key in /in/gChCs on line 10 QO8AQQNSRTQK7TQI
Output for 7.0.18
Notice: Undefined variable: key in /in/gChCs on line 10 LCZOVCQMN6BB3BS9
Output for 7.0.17
Notice: Undefined variable: key in /in/gChCs on line 10 YCNB5WRW0KO73ZTS
Output for 7.0.16
Notice: Undefined variable: key in /in/gChCs on line 10 TITJSTQ00JTM45DF
Output for 7.0.15
Notice: Undefined variable: key in /in/gChCs on line 10 QMJSCYOHCNCIHEWD
Output for 7.0.14
Notice: Undefined variable: key in /in/gChCs on line 10 FUOR5F0FNTC6MEPB
Output for 7.0.13
Notice: Undefined variable: key in /in/gChCs on line 10 0B9O6IWPSDR13IFC
Output for 7.0.12
Notice: Undefined variable: key in /in/gChCs on line 10 GH4KF6CURU44WAYP
Output for 7.0.11
Notice: Undefined variable: key in /in/gChCs on line 10 XSFAFMV4FM6Y9AKA
Output for 7.0.10
Notice: Undefined variable: key in /in/gChCs on line 10 NK1OG4IS3QKXGLEQ
Output for 7.0.9
Notice: Undefined variable: key in /in/gChCs on line 10 M0X48ZH82YQMUTVU
Output for 7.0.8
Notice: Undefined variable: key in /in/gChCs on line 10 UHCDTJ1I10LLU6GA
Output for 7.0.7
Notice: Undefined variable: key in /in/gChCs on line 10 CRLQABUMJFBDOMYL
Output for 7.0.6
Notice: Undefined variable: key in /in/gChCs on line 10 G11CD4YY5XGYCEXX
Output for 7.0.5
Notice: Undefined variable: key in /in/gChCs on line 10 LWHT5XEFEZFIYERP
Output for 7.0.4
Notice: Undefined variable: key in /in/gChCs on line 10 T3HW9SUIF1G4H4Q6
Output for 7.0.3
Notice: Undefined variable: key in /in/gChCs on line 10 0WCOF9IWKPEXY6DA
Output for 7.0.2
Notice: Undefined variable: key in /in/gChCs on line 10 2ZLMWB8N3CLNJWI1
Output for 7.0.1
Notice: Undefined variable: key in /in/gChCs on line 10 SOZP4GSOYCDVF06S
Output for 7.0.0
Notice: Undefined variable: key in /in/gChCs on line 10 21CAWFLQRSBMOZBH
Output for hhvm-3.15.4
Y8WMFPJMLHXMTP5K
Output for 5.6.30
Notice: Undefined variable: key in /in/gChCs on line 10 CXXTYNUVBJSGFC0N
Output for 5.6.29
Notice: Undefined variable: key in /in/gChCs on line 10 5P7BSU2ITLCKHJSQ
Output for 5.6.28
Notice: Undefined variable: key in /in/gChCs on line 10 QIZO8KXDNLJ0TIXC
Output for 5.6.25, 5.6.27
Notice: Undefined variable: key in /in/gChCs on line 10 SBJPNSXZSAV0P3GF
Output for 5.6.26
Notice: Undefined variable: key in /in/gChCs on line 10 W0RYUNJJQYUOI4VS
Output for 5.6.24
Notice: Undefined variable: key in /in/gChCs on line 10 KRAUYQXZICJCLPWX
Output for 5.6.23
Notice: Undefined variable: key in /in/gChCs on line 10 GVWRMWYUYGWRWGSB
Output for 5.6.22
Notice: Undefined variable: key in /in/gChCs on line 10 UUELIZ5T4PZ6DYZA
Output for 5.6.21
Notice: Undefined variable: key in /in/gChCs on line 10 DRAGFDDYQFPCC1VN
Output for 5.6.20
Notice: Undefined variable: key in /in/gChCs on line 10 I4W3R1XWAXRXN0TK
Output for 5.6.19
Notice: Undefined variable: key in /in/gChCs on line 10 IR1UUMCLAAEWMZW7
Output for 5.6.18
Notice: Undefined variable: key in /in/gChCs on line 10 N8IPY3P75OCNPQAI
Output for 5.6.17
Notice: Undefined variable: key in /in/gChCs on line 10 JMFQPL4GZPDSHJRW
Output for 5.6.16
Notice: Undefined variable: key in /in/gChCs on line 10 B2B4TCVZQO0AO8MU
Output for 5.6.15
Notice: Undefined variable: key in /in/gChCs on line 10 2QLK3ZKM6D9DIXJA
Output for 5.6.14
Notice: Undefined variable: key in /in/gChCs on line 10 JFQEPBAMLTLSSI04
Output for 5.6.13
Notice: Undefined variable: key in /in/gChCs on line 10 VBAPUL3XQYZKKD9X
Output for 5.6.12
Notice: Undefined variable: key in /in/gChCs on line 10 MCL7YAGLIR7URBIJ
Output for 5.6.11
Notice: Undefined variable: key in /in/gChCs on line 10 DS6LJJUMDE1NNPJI
Output for 5.6.10
Notice: Undefined variable: key in /in/gChCs on line 10 D5MTVZNROP2MTOL3
Output for 5.6.9
Notice: Undefined variable: key in /in/gChCs on line 10 XSKIWIDFWWHS5BNS
Output for 5.6.8
Notice: Undefined variable: key in /in/gChCs on line 10 NEGM94UB0E9SE0TL
Output for 5.6.7
Notice: Undefined variable: key in /in/gChCs on line 10 VJ4FK11LZZAUYT0S
Output for 5.6.6
Notice: Undefined variable: key in /in/gChCs on line 10 SMCYXYLGXMXTHWMD
Output for 5.6.5
Notice: Undefined variable: key in /in/gChCs on line 10 AGYT7DYTLBFN0WVT
Output for 5.6.4
Notice: Undefined variable: key in /in/gChCs on line 10 VAHIEXVL3VR3UCCC
Output for 5.6.3
Notice: Undefined variable: key in /in/gChCs on line 10 RWPE5XWFFPSNSPV9
Output for 5.6.2
Notice: Undefined variable: key in /in/gChCs on line 10 QQSEYN3H6AXBP4CC
Output for 5.6.1
Notice: Undefined variable: key in /in/gChCs on line 10 MGWHBCCIQHF9XGUZ
Output for 5.6.0
Notice: Undefined variable: key in /in/gChCs on line 10 9LDNLGVFZTCLZNWW