- Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
- Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/dQZGs on line 7
Process exited with code 255.
<?php
function id($x) {
return $x;
}
echo new class {
public function nameThyself()
{
return get_class($this);
}
}->nameThyself();