3v4l.org

run code in 500+ PHP versions simultaneously
<?php blah(bar: "1"); function blah($foo = "deffoo", $bar) { echo '$foo: ' . $foo . "\n" . '$bar: ' . $bar; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cg4DA
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                                           'blah'
          1        SEND_VAL_EX                                                  '1', 'bar'
          2        CHECK_UNDEF_ARGS                                             
          3        DO_FCALL                                          1          
    7     4      > RETURN                                                       1

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

End of function blah

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.98 ms | 1990 KiB | 13 Q