3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php } $c = new myOtherClass(); } class myClass { public $member = "ABC"; function showMember() { echo $this->member; } } class myOtherClass extends myClass { public $member = "DEF"; function __construct() { parent::showMember}}
Output for 5.3.0 - 5.4.20
Parse error: syntax error, unexpected '}' in /in/A0JQ7 on line 2
Process exited with code 255.