3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; echo $this->a;
based on dnMil
Output for 7.0.0 - 7.3.0rc4
Fatal error: Uncaught Error: Using $this when not in object context in /in/eZrrs:5 Stack trace: #0 {main} thrown in /in/eZrrs on line 5
Process exited with code 255.
Output for 5.6.0 - 5.6.23
Fatal error: Using $this when not in object context in /in/eZrrs on line 5
Process exited with code 255.