3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public static function meth() { echo '-'; } } function funA() { echo 'A'; } function funB() { echo 'B'; } register_shutdown_function('TestClass', 'meth'); register_shutdown_function('funA'); register_shutdown_function('funB'); register_shutdown_function('TestClass', 'meth');
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: register_shutdown_function(): Argument #1 ($callback) must be a valid callback, function "TestClass" not found or invalid function name in /in/NSa2W:7 Stack trace: #0 /in/NSa2W(7): register_shutdown_function('TestClass', 'meth') #1 {main} thrown in /in/NSa2W on line 7
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:
43.08 ms | 401 KiB | 8 Q