3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Car { public static function run() { return static::getName(); } private static function getName() { return 'Car'; } } class Toyota extends Car { public static function getName() { return 'Toyota'; } } echo Car::run(); // Output: Car echo '\n; echo Toyota::run(); // Output: Toyota ?>
Output for 7.3.0rc3
Parse error: syntax error, unexpected ''\n;' (T_ENCAPSED_AND_WHITESPACE) in /in/nIOK9 on line 24
Process exited with code 255.