3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Controller{ public static function pieces(){ $p=explode("/", $_SERVER['REQUEST_URI']);//mag leeg zijn $p=array_filter($p); $pieces=array_values($p); new static($pieces);} final private function __construct($pieces){ $this->_construct(); #$this->inlog = new UserLogin; #$this->mysqli = new mysqli(HOST, USER, PASSWORD, DATABASE); #$this->inlog->sec_session_start();} protected function _construct(){}} Controller::pieces(); ?>
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected 'protected' (T_PROTECTED) in /in/tIqX7 on line 17
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_PROTECTED in /in/tIqX7 on line 17
Process exited with code 255.