3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class father { protected $name; function __construct($name){ $this -> name = $name; } function __destruct(){ echo "<p>".$this ->name."what the ca </p>"; } } $father = new father(father); ?>
based on uYA8F
Output for 7.2.0
Warning: Use of undefined constant father - assumed 'father' (this will throw an Error in a future version of PHP) in /in/PsqRl on line 12 <p>fatherwhat the ca </p>
Output for 5.3.21 - 7.1.10
Notice: Use of undefined constant father - assumed 'father' in /in/PsqRl on line 12 <p>fatherwhat the ca </p>