3v4l.org

run code in 500+ PHP versions simultaneously
<?php function myFunc(string $foo = 'foo', string $bar = 'bar'): void { var_dump($foo, $bar); } $name = 'foo'; myFunc(...[$name => 'fnord']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qY3os
function name:  (null)
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                       !0, 'foo'
   11     1        INIT_FCALL                                                   'myfunc'
          2        INIT_ARRAY                                           ~2      'fnord', !0
          3        SEND_UNPACK                                                  ~2
          4        CHECK_UNDEF_ARGS                                             
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

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

End of function myfunc

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
215.19 ms | 2150 KiB | 15 Q