3v4l.org

run code in 300+ PHP versions simultaneously
<?php class magicFunkBerry { public static function discoBiscuit($foo) { echo $foo; } } $g = 'magicFunkBerry::discoBiscuit'; call_user_func_array($g, array('yo')); $g('hello');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i8uFA
function name:  (null)
number of ops:  9
compiled vars:  !0 = $g
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 'magicFunkBerry%3A%3AdiscoBiscuit'
   11     1        INIT_USER_CALL                                0          'call_user_func_array', !0
          2        SEND_ARRAY                                               <array>
          3        CHECK_UNDEF_ARGS                                         
          4        DO_FCALL                                      0          
   12     5        INIT_DYNAMIC_CALL                                        !0
          6        SEND_VAL_EX                                              'hello'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class magicFunkBerry:
Function discobiscuit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i8uFA
function name:  discoBiscuit
number of ops:  3
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ECHO                                                     !0
    6     2      > RETURN                                                   null

End of function discobiscuit

End of class magicFunkBerry.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.38 ms | 1393 KiB | 13 Q