3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Builder { public function add($string1, $number1) { return $string1 . $number1; } } $builder = new Builder; $params = array('This is number: ', 4); echo call_user_func_array([$builder, 'add'], $params);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4VFi6
function name:  (null)
number of ops:  12
compiled vars:  !0 = $builder, !1 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $2      'Builder'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   10     3        ASSIGN                                                   !1, <array>
   12     4        INIT_ARRAY                                       ~6      !0
          5        ADD_ARRAY_ELEMENT                                ~6      'add'
          6        INIT_USER_CALL                                0          'call_user_func_array', ~6
          7        SEND_ARRAY                                               !1
          8        CHECK_UNDEF_ARGS                                         
          9        DO_FCALL                                      1  $7      
         10        ECHO                                                     $7
         11      > RETURN                                                   1

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

End of function add

End of class Builder.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.91 ms | 996 KiB | 13 Q