3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ref( &$ref ) { var_dump( $ref ); } $func = 'ref'; $foo = 'native'; ref( $foo ); $foo = 'variable'; $func( $foo ); $foo = 'call_user_func_array'; call_user_func_array( $func, array( &$foo ) ); $foo = 'call_user_func'; call_user_func( $func, $foo );
Output for git.master, git.master_jit, rfc.property-hooks
string(6) "native" string(8) "variable" string(20) "call_user_func_array" Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in /in/fESuN on line 16 string(14) "call_user_func"

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