3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $max = strlen($characters) - 1; $token = (string) null; for ($i = 0; $i < 1024; $i++) { $token .= $characters[mt_rand(0, $max]; } var_dump($token);
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected ']' in /in/oV6Ik on line 6
Process exited with code 255.