3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a { function a_function($name) { return 'A Fnction '.$name; } function a1_function() { return 'A 1 Fnction'; } } $a = new a(); echo $a->a_function('karthik');
based on qmJ4N
Output for 4.4.4 - 7.1.0
A Fnction karthik