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();
Output for 7.0.0 - 7.1.0
Insu Fatal error: Uncaught Error: Class 'Insurance' not found in /in/QN6QW:12 Stack trace: #0 {main} thrown in /in/QN6QW on line 12
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Insu Fatal error: Class undefined: Insurance in /in/QN6QW on line 12
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Insu Fatal error: Class 'Insurance' not found in /in/QN6QW on line 12
Process exited with code 255.
Output for 4.3.2 - 4.4.9
insu Fatal error: Undefined class name 'insurance' in /in/QN6QW on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
insu Fatal error: Undefined class name 'insurance' in /in/QN6QW on line 12