3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php set_time_limit(0); $length=3; $arr_u = array(); $arr_t = array(); $charset=sprintf('%s', implode('',array_merge(range('0', '9'),range('a', 'f')))); for($i=0;$i<strlen($charset);$i++) $a[]=$charset{$i}; for($i=0,$c="",$d="chk(";$i<$length;$i++){ $c.="foreach(\$a as \$b[$i])"; $d.="\$b[$i]."; } eval($c.$d."\"\n\");"); function chk($str){ array_push($arr_u,"%u0$str"); } for($i=0; $i<52; $i++){ array_push($arr_t,$arr_u[rand(0000,count($arr_u))]); unset($arr_u); print(implode("",$arr_t));
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected end of file in /in/uGuTc on line 25
Process exited with code 255.
Output for 5.3.0 - 5.3.25
Parse error: syntax error, unexpected $end in /in/uGuTc on line 25
Process exited with code 255.