3v4l.org

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

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

End of function bar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.96 ms | 999 KiB | 14 Q