- Output for 8.1.0 - 8.1.29, 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
- Fatal error: Uncaught Error: Cannot access protected property foo::$bar in /in/quWie:7
Stack trace:
#0 {main}
thrown in /in/quWie on line 7
Process exited with code 255.
<?php
class foo {
protected $bar = 'fg';
}
echo (new foo)->bar;