3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fred = null; echo ! $fred; echo ! null; $dino = new stdClass; var_dump(get_class($this->object));
based on SIJM0
Output for 7.0.0 - 7.2.0
11 Fatal error: Uncaught Error: Using $this when not in object context in /in/P3Uru:9 Stack trace: #0 {main} thrown in /in/P3Uru on line 9
Process exited with code 255.
Output for 5.3.18 - 5.6.28
11 Fatal error: Using $this when not in object context in /in/P3Uru on line 9
Process exited with code 255.