- Output for 5.3.0 - 5.3.27, 5.4.0 - 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.
<?php
class Parent
{
public static $static = 'Parent class';
public static method staticVariable()
{
echo static::$static;
}
}
Parent::staticVariable();