- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0 - 7.0.2
- Parse error: syntax error, unexpected '(', expecting '{' in /in/3DAXT on line 2
Process exited with code 255.
<?php
class TestClass() {
public function baz() {
echo "Worked!";
}
}
$foo = 'bam';
$bam = ['bar' => new TestClass()];
$$foo['bar']->baz();
function getResult() {
return "string";
}
echo getResult(){0};