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(who); ?>
based on PsqRl
Output for 7.2.0
Warning: Use of undefined constant who - assumed 'who' (this will throw an Error in a future version of PHP) in /in/fHtXd on line 12 <p>whowhat the ca </p>
Output for 5.3.21 - 7.1.10
Notice: Use of undefined constant who - assumed 'who' in /in/fHtXd on line 12 <p>whowhat the ca </p>