3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ protected function baz(){ echo "it works!\n"; } private function bar(){ echo "it works!\n"; } } (function(){ $x = new A; $x->baz(); $x->bar(); })->bindTo(null /* $this */, \A::CLASS)();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
161.33 ms | 2706 KiB | 10 Q