3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($foo, $bar = "bardefault", $qux = "quxdefault") { return [$foo, $bar, $qux]; } var_dump(test(foo: "foovalue", qux: "quxvalue"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rUGuP
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'test'
          2        SEND_VAL                                                 'foovalue'
          3        SEND_VAL                                                 'quxvalue'
          4        CHECK_UNDEF_ARGS                                         
          5        DO_FCALL                                      0  $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rUGuP
function name:  test
number of ops:  8
compiled vars:  !0 = $foo, !1 = $bar, !2 = $qux
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'bardefault'
          2        RECV_INIT                                        !2      'quxdefault'
    5     3        INIT_ARRAY                                       ~3      !0
          4        ADD_ARRAY_ELEMENT                                ~3      !1
          5        ADD_ARRAY_ELEMENT                                ~3      !2
          6      > RETURN                                                   ~3
    6     7*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.49 ms | 999 KiB | 15 Q