- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected '(' in /in/YT5qP on line 16
Process exited with code 255.
<?php
abstract class Example {
public function hello()
{
return 'hello';
}
}
abstract class Wibble extends Example {}
class Thing extends Wibble {}
print new (Thing)->hello();