3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassWithCall { function __call($name, $arguments) { var_dump(func_get_args()); } } $cc = new ClassWithCall(); $cc->{'any string here'}(123);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YCCE3
function name:  (null)
number of ops:  7
compiled vars:  !0 = $cc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'ClassWithCall'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_METHOD_CALL                                         !0, 'any+string+here'
          4        SEND_VAL_EX                                              123
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class ClassWithCall:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YCCE3
function name:  __call
number of ops:  7
compiled vars:  !0 = $name, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        INIT_FCALL                                               'var_dump'
          3        FUNC_GET_ARGS                                    ~2      
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    8     6      > RETURN                                                   null

End of function __call

End of class ClassWithCall.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.54 ms | 1450 KiB | 14 Q