3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function DoFoo() { print("[" . get_called_class() . "]"); } } class Bar { function DoBar() { Foo::DoFoo(); } } // Called by direct static call. Foo::DoFoo(); // Called by indirect static call, without an object context. Bar::DoBar(); // Called by indirect static call, from within an (unrelated) object context. // (But still, ultimately, a static call). $Bar = new Bar(); $Bar->DoBar();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
161.25 ms | 3437 KiB | 8 Q