3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Controller{ public function pieces(){ $p=explode("/", $_SERVER['REQUEST_URI']);//mag leeg zijn $p=array_filter($p); $p=array_values($p); return $p;} public function prevURL(){ $="/Home/"; if (isset($_SERVER['HTTP_REFERER'])){ $p=$_SERVER['HTTP_REFERER'];} return $p;}} ?>
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '=', expecting variable (T_VARIABLE) or '$' in /in/acbbn on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '=', expecting T_VARIABLE or '$' in /in/acbbn on line 11
Process exited with code 255.