3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php phpinfo(); class Father { public $value; /** * Father Controller */ public function __construct() { $this->value = 123; } } class Child extends Father { /** * Child Controller that extend Father */ public function __construct($x) { parent::__construct(); } } $obj = new Child(1); echo $obj->value;
based on 6pKe9
Output for 5.4.0 - 7.1.0
Warning: phpinfo() has been disabled for security reasons in /in/tAI4i on line 2 123