3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a { public function test() { echo 'test' . PHP_EOL; } } $a = new a; $a && $a->test();
Output for 5.6.28 - 7.1.0
test