3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class MyClass{ function display_name(){ echo 'MyClass class has initialized !'; } } $name = new MyClass; $name->display_name();
Output for 4.3.0 - 7.1.0
MyClass class has initialized !