3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class App{ protected $controller = 'home'; protected $method = 'index'; protected $params[]; public function __construct(){ // echo 'OK!!!'; $this->parseUrl(); } public function parseUrl(){ if(isset($_GET['url'])){ echo $_GET['url']; } } }
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /in/SHn3R on line 5
Process exited with code 255.