3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; for ($x=0,$r=null;$x<8;$x++) { $r .= $a[mt_rand(0, strlen($a) - 1)] } echo $r;
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected '}' in /in/NP40F on line 7
Process exited with code 255.