3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class test{ protected $testVar = 'a'; } class test2 extends test { function __construct() { } function bla() { echo $this->testVar } } $obj = new test2(); $obj->bla();
Output for 5.3.0 - 5.4.21
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/vS0D9 on line 14
Process exited with code 255.