- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected '[', expecting ',' or ')' in /in/pQqm5 on line 9
Process exited with code 255.
<?php
class Foo {
public $bar = 'barValue';
protected $baz = 'bazValue';
private $tab = 'tabValue';
}
var_dump((array) new Foo()["*baz"]);