3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('allow_call_time_pass_reference','Off'); class Foo{public function bar($a,&$b,$c){return func_get_args();}} $foo=new Foo(); $aa='A'; $bb='B'; $cc='C'; call_user_func_array(array($foo,'bar'),array($aa,&$bb,$cc));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bCUR5
function name:  (null)
number of ops:  20
compiled vars:  !0 = $foo, !1 = $aa, !2 = $bb, !3 = $cc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'allow_call_time_pass_reference'
          2        SEND_VAL                                                 'Off'
          3        DO_ICALL                                                 
    4     4        NEW                                              $5      'Foo'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $5
    5     7        ASSIGN                                                   !1, 'A'
    6     8        ASSIGN                                                   !2, 'B'
    7     9        ASSIGN                                                   !3, 'C'
    8    10        INIT_ARRAY                                       ~11     !0
         11        ADD_ARRAY_ELEMENT                                ~11     'bar'
         12        INIT_USER_CALL                                0          'call_user_func_array', ~11
         13        INIT_ARRAY                                       ~12     !1
         14        ADD_ARRAY_ELEMENT                                ~12     !2
         15        ADD_ARRAY_ELEMENT                                ~12     !3
         16        SEND_ARRAY                                               ~12
         17        CHECK_UNDEF_ARGS                                         
         18        DO_FCALL                                      0          
         19      > RETURN                                                   1

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

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.48 ms | 1387 KiB | 15 Q