- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.30
- Parse error: syntax error, unexpected ']' in /in/oV6Ik on line 6
Process exited with code 255.
<?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);