3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Model { private $id; public function setId($id) { $this->id = $id; } } $model = new Model; $method = 'setId'; call_user_func_array(array($model, $method), array('test'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P9qRo
function name:  (null)
number of ops:  11
compiled vars:  !0 = $model, !1 = $method
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'Model'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   14     3        ASSIGN                                                   !1, 'setId'
   16     4        INIT_ARRAY                                       ~6      !0
          5        ADD_ARRAY_ELEMENT                                ~6      !1
          6        INIT_USER_CALL                                0          'call_user_func_array', ~6
          7        SEND_ARRAY                                               <array>
          8        CHECK_UNDEF_ARGS                                         
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class Model:
Function setid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P9qRo
function name:  setId
number of ops:  4
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN_OBJ                                               'id'
          2        OP_DATA                                                  !0
    9     3      > RETURN                                                   null

End of function setid

End of class Model.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.37 ms | 1398 KiB | 13 Q