3v4l.org

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

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8MTrB
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/8MTrB
function name:  testProxy
number of ops:  6
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV_VARIADIC                                    !0      
   12     1        INIT_FCALL                                               'test'
          2        SEND_UNPACK                                              !0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_FCALL                                      1          
   13     5      > RETURN                                                   null

End of function testproxy

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.91 ms | 1398 KiB | 17 Q