3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /*class Insu { function clsName() { echo get_class($this); } } $cl = new Insu; $cl->clsName();*/ //Insurance::clsName(); TRUE; FALSE; NULL; __FILE__; CONSTANT; //var_dump(3*4);
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
Notice: Use of undefined constant CONSTANT - assumed 'CONSTANT' in /in/6UWpn on line 20
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/6UWpn on line 22
Process exited with code 255.