3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } var_dump((array) new Foo()["*baz"]);
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.

preferences:
178.89 ms | 1395 KiB | 36 Q