3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f0() {} function f1() {} function f2() {} function f3() {} assert(get_defined_functions()['user'] === array('f0', 'f1', 'f2', 'f3')); assert(get_defined_functions('user') === array('f0', 'f1', 'f2', 'f3')); assert(get_defined_functions(0) === array('f0', 'f1', 'f2', 'f3')); assert(get_defined_functions(1) === array('f1', 'f2', 'f3')); assert(get_defined_functions(3) === array('f3')); assert(get_defined_functions(4) === array()); assert(get_defined_functions(5) === array());
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught AssertionError: assert(get_defined_functions('user') === ['f0', 'f1', 'f2', 'f3']) in /in/q68fI:8 Stack trace: #0 /in/q68fI(8): assert(false, 'assert(get_defi...') #1 {main} thrown in /in/q68fI on line 8
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:
57.14 ms | 401 KiB | 8 Q