3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Bar { /*public function __set_state() { return 'as'; }*/ } $a=new Bar; var_export($a); ?>
Output for 5.1.0 - 7.1.0
Bar::__set_state(array( ))
Output for 5.0.0 - 5.0.5
class Bar { }
Output for 4.3.0 - 4.4.9
class bar { }