3v4l.org

run code in 300+ PHP versions simultaneously
_<?php function test($var1, $var2 = false) { var_dump($var1, $var2); } function testProxy() { call_user_func_array('test', func_get_args()); } testProxy();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZEIge
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '_'
   16     1        INIT_FCALL                                               'testproxy'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

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

End of function test

Function testproxy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZEIge
function name:  testProxy
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'test'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_ARRAY                                               ~0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_FCALL                                      0          
   13     5      > RETURN                                                   null

End of function testproxy

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.16 ms | 1389 KiB | 17 Q