3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() {} function bar() {} function proxy($c) { spl_autoload_call($c); } spl_autoload_register(foo(...)); spl_autoload_register(bar(...)); var_dump(spl_autoload_functions()); var_dump(spl_autoload_unregister(proxy(...))); var_dump(spl_autoload_functions()); var_dump(spl_autoload_unregister(spl_autoload_call(...))); var_dump(spl_autoload_functions());
Output for git.master_jit, git.master
array(2) { [0]=> object(Closure)#1 (1) { ["function"]=> string(3) "foo" } [1]=> object(Closure)#2 (1) { ["function"]=> string(3) "bar" } } bool(false) array(2) { [0]=> object(Closure)#1 (1) { ["function"]=> string(3) "foo" } [1]=> object(Closure)#2 (1) { ["function"]=> string(3) "bar" } } bool(true) array(0) { }

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:
29.8 ms | 406 KiB | 5 Q