- Output for 5.3.7 - 5.3.28, 5.4.0 - 5.4.27
- Fatal error: Cannot use 'Parent' as class name as it is reserved in /in/dDOIh on line 3
Process exited with code 255.
<?php
class Parent
{
function id()
{
var_dump(self instanceof Child);
}
}
class Child extends Parent
{
}
$x = new Child;
$x->id();