3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists('cd')) { function cd($var) { var_dump($var); } } function corban_error_handler($errno , $errstr, $errfile, $errline) { echo '<pre>'; print_r(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)); echo '</pre>'; cd($errno); cd($errstr); cd($errfile); cd($errline); if ( version_compare(PHP_VERSION, '5.0.0', '>=') ) { $file = new SplFileObject($errfile); $file->seek($errline-1); echo $file->current(); } return false; } set_error_handler ('corban_error_handler', E_NOTICE); $b = null; cd($a); cd($b);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $a in /in/I0oPO on line 34 NULL NULL

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:
35.35 ms | 401 KiB | 8 Q