3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Person { function getN(){return 5;} function ret(){return $this;} function retN(){return null;} } class NullPerson extends Person { function getN(){return 0;} function ret(){return $this;} function retN(){return null;} }
Output for 5.3.20 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.11