3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class dupa { public $a = 'j'; public function __construct($param) { $this->a = $param; echo '+_construct'.$this->a.'<br />'.self::NICE; } public static $NICE }; $a = new dupa('blabla'); echo $a->a; $b = new dupa(''); echo $b->a;?>
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/Da0bm on line 11
Process exited with code 255.