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 '<br>'; echo Toyota::run(); // Output: Toyota ?>
Output for 7.3.0rc3
Car<br>Toyota