3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Insu { function clsName() { echo get_class($this); } } Insu::clsName();
Output for 7.1.0
Deprecated: Non-static method Insu::clsName() should not be called statically in /in/Gt91M on line 11 Fatal error: Uncaught Error: Using $this when not in object context in /in/Gt91M:7 Stack trace: #0 /in/Gt91M(11): Insu::clsName() #1 {main} thrown in /in/Gt91M on line 7
Process exited with code 255.
Output for 7.0.0 - 7.0.14
Deprecated: Non-static method Insu::clsName() should not be called statically in /in/Gt91M on line 11 Notice: Undefined variable: this in /in/Gt91M on line 7 Insu
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: this in /in/Gt91M on line 7 Insu
Output for 5.3.1 - 5.6.28
Strict Standards: Non-static method Insu::clsName() should not be called statically in /in/Gt91M on line 11 Notice: Undefined variable: this in /in/Gt91M on line 7 Insu
Output for 5.3.0
Strict Standards: Non-static method Insu::clsName() should not be called statically in /in/Gt91M on line 11 Notice: Undefined variable: this in /in/Gt91M on line 7 Warning: get_class() expects parameter 1 to be object, null given in /in/Gt91M on line 7
Output for 5.0.4 - 5.2.17
Strict Standards: Non-static method Insu::clsName() should not be called statically in /in/Gt91M on line 11 Notice: Undefined variable: this in /in/Gt91M on line 7
Output for 5.0.0 - 5.0.3
Strict Standards: Non-static method Insu::clsName() should not be called statically in /in/Gt91M on line 11 Notice: Undefined variable: this in /in/Gt91M on line 7
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: this in /in/Gt91M on line 7