3v4l.org

run code in 300+ PHP versions simultaneously
<?php bar(['bar' => 'fight']); function bar ($kwargs = ['a1' => null, 'bar' => null, 'foo' => null]) { extract($kwargs); var_export(get_defined_vars()); echo "\n---\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UdkAq
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'bar'
          1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
    9     3      > RETURN                                                   1

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UdkAq
function name:  bar
number of ops:  11
compiled vars:  !0 = $kwargs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      <array>
    6     1        INIT_FCALL                                               'extract'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    7     4        INIT_FCALL                                               'var_export'
          5        INIT_FCALL                                               'get_defined_vars'
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    8     9        ECHO                                                     '%0A---%0A'
    9    10      > RETURN                                                   null

End of function bar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.52 ms | 1001 KiB | 16 Q