3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Parent { public static $static = 'Parent class'; public static method staticVariable() { echo static::$static; } } Parent::staticVariable();
Output for 5.4.18
Fatal error: Cannot use 'Parent' as class name as it is reserved in /in/dB9n2 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.4.17
Fatal error: Cannot use 'Parent' as class name as it is reserved in /in/ZhQJV on line 5
Process exited with code 255.