3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo{ function __name(){ $this -> surname = "brant"; $this -> firstname = "wong"; $middle = "Big"; echo $middle; } } $foo = new foo(); ?>
based on DnBMq
Output for 4.3.0 - 7.2.0