3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog{ function bark($name){ return "bark bark" . $name; } } $controllerName = 'Dog'; var_dump(call_user_func_array(['Dog', 'bark'], ['Oink']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hh0ID
function name:  (null)
number of ops:  9
compiled vars:  !0 = $controllerName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 'Dog'
   10     1        INIT_FCALL                                               'var_dump'
          2        INIT_USER_CALL                                0          'call_user_func_array', <array>
          3        SEND_ARRAY                                               <array>
          4        CHECK_UNDEF_ARGS                                         
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class Dog:
Function bark:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hh0ID
function name:  bark
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        CONCAT                                           ~1      'bark+bark', !0
          2      > RETURN                                                   ~1
    6     3*     > RETURN                                                   null

End of function bark

End of class Dog.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
214.49 ms | 1394 KiB | 15 Q