3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function __callStatic($name, $arguments) { if ($name === 'get') { if (!isset($arguments[0])) { var_dump(['getSomeWhat']); var_dump($arguments); exit; } } echo 'OK'; } protected function get ($key) { // BUG!!! } } class Bar { static function __callStatic($name, $arguments) { echo Foo::get('getSomeWhat'); } } Bar::someUndefinedStaticFunction();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
164.34 ms | 2129 KiB | 9 Q