3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public static $a = "Hello"; public $b = "World"; public function getNekaj() { echo self::$a; } public static function getNekajDrugo() { echo self::$a; } } A::getNekaj();
based on UUoW6
Output for 7.0.0 - 7.2.0
Deprecated: Non-static method A::getNekaj() should not be called statically in /in/CZgpT on line 16 Hello
Output for 5.3.18 - 5.6.28
Strict Standards: Non-static method A::getNekaj() should not be called statically in /in/CZgpT on line 16 Hello