3v4l.org

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

Class Dog:
Function bark:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7sA1f
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:
143.38 ms | 1395 KiB | 15 Q