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";
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: foo(): Argument #1 ($x) must be of type array, int given, called in /in/neFdl on line 20 and defined in /in/neFdl:3 Stack trace: #0 /in/neFdl(20): foo(5) #1 {main} thrown in /in/neFdl on line 3
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
53.82 ms | 1626 KiB | 4 Q