3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Some { public function __construct() { echo get_class($this); } } class Any extends Some { public function call_construct() { parent::__construct(); } } $some = new Some; $any = new Any; $any->call_construct();