3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($a, array $b = null, array $c = null) { var_dump(func_get_args()); } foo(1, [], []); foo(1); foo(1, null, null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7CmE3
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'foo'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <array>
          4        DO_FCALL                                      0          
    8     5        INIT_FCALL                                               'foo'
          6        SEND_VAL                                                 1
          7        DO_FCALL                                      0          
    9     8        INIT_FCALL                                               'foo'
          9        SEND_VAL                                                 1
         10        SEND_VAL                                                 null
         11        SEND_VAL                                                 null
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.1 ms | 1397 KiB | 18 Q