3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(get_class($this));
Output for 7.1.0
Fatal error: Uncaught Error: Using $this when not in object context in /in/aqsD5:2 Stack trace: #0 {main} thrown in /in/aqsD5 on line 2
Process exited with code 255.
Output for 5.3.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
Notice: Undefined variable: this in /in/aqsD5 on line 2 Warning: get_class() called without object from outside a class in /in/aqsD5 on line 2
Output for 5.3.0
Notice: Undefined variable: this in /in/aqsD5 on line 2 Warning: get_class() expects parameter 1 to be object, null given in /in/aqsD5 on line 2
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: this in /in/aqsD5 on line 2
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: this in /in/aqsD5 on line 2