- 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 '{' in /in/SiqRW on line 14
Process exited with code 255.
<?php
class TestClass {
public function baz() {
echo "Worked!";
}
}
$foo = 'bam';
$bam = ['bar' => new TestClass()];
$output = $$foo;
var_dump($$foo); // Correctly reads this
var_dump({$$foo}['bar']); // Change $$foo to $output
$$foo['bar']->baz();
// function getResult() {
// return "string";
// }
// echo getResult(){0};