3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Lol { protected $lol; public function getLol() { return $this->lol; } } Lol::getLol();
Output for 7.0.0 - 7.2.0
Deprecated: Non-static method Lol::getLol() should not be called statically in /in/um1Jc on line 14 Fatal error: Uncaught Error: Using $this when not in object context in /in/um1Jc:9 Stack trace: #0 /in/um1Jc(14): Lol::getLol() #1 {main} thrown in /in/um1Jc on line 9
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Strict Standards: Non-static method Lol::getLol() should not be called statically in /in/um1Jc on line 14 Fatal error: Using $this when not in object context in /in/um1Jc on line 9
Process exited with code 255.