3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public function bar() { echo '-> '. self::$data . ' <-'; } public static $data = 'FooData'; } $foo = new Foo; echo $foo::$data;
Output for 5.3.3 - 7.1.0
FooData
Output for 5.2.14 - 5.2.17
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ',' or ';' in /in/M3TIN on line 11
Process exited with code 255.