3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(array $x) {} set_error_handler( function($error_level, $message, $filename, $line, $context){ $error_level_str = implode( ', ', array_filter( array_keys(get_defined_constants(), $error_level), function($v) { return 0 === strpos($v, 'E_'); })); print "ERROR ($error_level_str):\n"; var_export(get_defined_vars()); print "\n"; }); foo(5); print "No problem\n";

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
167.53 ms | 2259 KiB | 17 Q