3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $random_string = function($length) { $bag = str_split('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'); $string = ''; while ($length--) { $string .= $bag[array_rand($bag)]; } return $string; }; $client_id = $random_string(2); var_dump($client_id);
based on lZdb4
Output for 7.1.0
string(2) "q8"
Output for 7.0.14
string(2) "4n"
Output for 7.0.6
string(2) "bc"
Output for 7.0.5
string(2) "sk"
Output for 7.0.4
string(2) "Dr"
Output for 7.0.3
string(2) "Rq"
Output for 7.0.2
string(2) "8c"
Output for 7.0.1
string(2) "e3"
Output for 7.0.0
string(2) "cS"
Output for hhvm-3.12.0
string(2) "87"
Output for hhvm-3.10.0
string(2) "6i"
Output for 5.6.21
string(2) "DT"
Output for 5.6.20
string(2) "5S"
Output for 5.6.19
string(2) "gp"
Output for 5.6.18
string(2) "II"
Output for 5.6.17
string(2) "SY"
Output for 5.6.16
string(2) "P8"
Output for 5.6.15
string(2) "Ik"
Output for 5.6.14
string(2) "zw"
Output for 5.6.13
string(2) "eA"
Output for 5.6.12
string(2) "fa"
Output for 5.6.11
string(2) "Ov"
Output for 5.6.10
string(2) "8R"
Output for 5.6.9
string(2) "Jm"
Output for 5.6.8
string(2) "rb"
Output for 5.5.35
string(2) "Jo"
Output for 5.5.34
string(2) "mK"
Output for 5.5.33
string(2) "Fe"
Output for 5.5.32
string(2) "UN"
Output for 5.5.31
string(2) "6P"
Output for 5.5.30
string(2) "eJ"
Output for 5.5.29
string(2) "EW"
Output for 5.5.28
string(2) "oX"
Output for 5.5.27
string(2) "F2"
Output for 5.5.26
string(2) "dJ"
Output for 5.5.25
string(2) "Jq"
Output for 5.5.24
string(2) "Y6"
Output for 5.4.45
string(2) "LR"
Output for 5.4.44
string(2) "Rk"
Output for 5.4.43
string(2) "R8"
Output for 5.4.42
string(2) "Jh"
Output for 5.4.41
string(2) "NO"
Output for 5.4.40
string(2) "dr"
Output for 5.4.39
string(2) "EN"
Output for 5.4.38
string(2) "jr"
Output for 5.4.37
string(2) "U8"
Output for 5.4.2, 5.4.36
string(2) "ye"
Output for 5.4.35
string(2) "bo"
Output for 5.4.34
string(2) "AV"
Output for 5.4.32
string(2) "mu"
Output for 5.4.31
string(2) "2a"
Output for 5.4.30
string(2) "jC"
Output for 5.4.29
string(2) "DK"
Output for 5.4.28
string(2) "pY"
Output for 5.4.27
string(2) "NC"
Output for 5.4.26
string(2) "y0"
Output for 5.4.25
string(2) "hv"
Output for 5.4.24
string(2) "cm"
Output for 5.4.23
string(2) "A0"
Output for 5.4.22
string(2) "Uo"
Output for 5.4.21
string(2) "Vt"
Output for 5.4.20
string(2) "Mo"
Output for 5.4.19
string(2) "uS"
Output for 5.4.18
string(2) "E5"
Output for 5.4.17
string(2) "21"
Output for 5.4.16
string(2) "cO"
Output for 5.4.15
string(2) "EM"
Output for 5.4.14
string(2) "sQ"
Output for 5.4.13
string(2) "tv"
Output for 5.4.12
string(2) "N8"
Output for 5.4.11
string(2) "1z"
Output for 5.4.10
string(2) "K7"
Output for 5.4.9
string(2) "JD"
Output for 5.4.8
string(2) "so"
Output for 5.4.7
string(2) "Y0"
Output for 5.4.6
string(2) "mk"
Output for 5.4.5
string(2) "f1"
Output for 5.4.4
string(2) "0k"
Output for 5.4.3
string(2) "QP"
Output for 5.4.1
string(2) "eh"
Output for 5.4.0
string(2) "Wx"
Output for 5.3.29
string(2) "U4"
Output for 5.3.28
string(2) "54"
Output for 5.3.27
string(2) "pr"
Output for 5.3.26
string(2) "vQ"
Output for 5.3.25
string(2) "cB"
Output for 5.3.24
string(2) "E1"
Output for 5.3.23
string(2) "mv"
Output for 5.3.22
string(2) "3u"
Output for 5.3.21
string(2) "ch"
Output for 5.3.20
string(2) "0p"
Output for 5.3.19
string(2) "vr"
Output for 5.3.18
string(2) "Hg"
Output for 5.3.17
string(2) "Ge"
Output for 5.3.16
string(2) "Ia"
Output for 5.3.15
string(2) "q2"
Output for 5.3.14
string(2) "yQ"
Output for 5.3.13
string(2) "EV"
Output for 5.3.12
string(2) "72"
Output for 5.3.11
string(2) "yK"
Output for 5.3.10
string(2) "CK"
Output for 5.3.9
string(2) "YH"
Output for 5.3.8
string(2) "nQ"
Output for 5.3.7
string(2) "SQ"
Output for 5.3.6
string(2) "si"
Output for 5.3.5
string(2) "Z2"
Output for 5.3.4
string(2) "tq"
Output for 5.3.3
string(2) "20"
Output for 5.3.2
string(2) "lr"
Output for 5.3.1
string(2) "Yj"
Output for 5.3.0
string(2) "IO"
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/Q6RqO on line 3
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 T_FUNCTION in /in/Q6RqO on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/Q6RqO on line 3
Process exited with code 255.