3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $o = new stdClass; $GLOBALS['this'] = $o; var_dump($this);
based on vsnDh
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught Error: Using $this when not in object context in /in/ijdOQ:4 Stack trace: #0 {main} thrown in /in/ijdOQ on line 4
Process exited with code 255.
Output for 5.3.18 - 7.0.20
object(stdClass)#1 (0) { }