3v4l.org

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

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.36 ms | 1003 KiB | 15 Q