3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(&$bar) { var_dump($bar); } $z = new stdclass; $v = array_merge(array(&$z), array($x)); call_user_func_array("foo", $v);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KoR2W
function name:  (null)
number of ops:  15
compiled vars:  !0 = $z, !1 = $v, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdclass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        INIT_FCALL                                               'array_merge'
          4        INIT_ARRAY                                       ~6      !0
          5        SEND_VAL                                                 ~6
          6        INIT_ARRAY                                       ~7      !2
          7        SEND_VAL                                                 ~7
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !1, $8
    5    10        INIT_FCALL                                               'foo'
         11        SEND_ARRAY                                               !1
         12        CHECK_UNDEF_ARGS                                         
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KoR2W
function name:  foo
number of ops:  5
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
          4      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
210.1 ms | 1397 KiB | 18 Q