3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function() { echo "first shutdown\n"; }); final class Another { public function __destruct() { //exit(); //throw new \RuntimeException('test'); } } final class Logger { public function __construct() { register_shutdown_function(function () { echo "shutdown\n"; }); } public function __destruct() { echo "destruct\n"; } } new Another(); new Logger(); register_shutdown_function(function() { echo "second shutdown\n"; }); 42/0;
Output for git.master, git.master_jit
Fatal error: Uncaught DivisionByZeroError: Division by zero in /in/moNUq:39 Stack trace: #0 {main} thrown in /in/moNUq on line 39 first shutdown shutdown second shutdown destruct
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:
31.92 ms | 405 KiB | 5 Q