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 - 7.2.0