3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo($a, $b) { echo "$a $b\n";} foo(...['x', 'y']); // x y // named parameters foo(...['a' => 'x', 'b' => 'y']); // x y foo(...['b' => 'x', 'a' => 'y']); // y x // positional parameters: integer key not used foo(...[0 => 'x', 1 => 'y']); // x y foo(...[120 => 'x', 11 => 'y']); // x y foo(...[11 => 'y', 120 => 'x']); // y x ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TbFHe
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                                   'foo'
          1        SEND_UNPACK                                                  <array>
          2        CHECK_UNDEF_ARGS                                             
          3        DO_FCALL                                          0          
    7     4        INIT_FCALL                                                   'foo'
          5        SEND_UNPACK                                                  <array>
          6        CHECK_UNDEF_ARGS                                             
          7        DO_FCALL                                          0          
    8     8        INIT_FCALL                                                   'foo'
          9        SEND_UNPACK                                                  <array>
         10        CHECK_UNDEF_ARGS                                             
         11        DO_FCALL                                          0          
   11    12        INIT_FCALL                                                   'foo'
         13        SEND_UNPACK                                                  <array>
         14        CHECK_UNDEF_ARGS                                             
         15        DO_FCALL                                          0          
   12    16        INIT_FCALL                                                   'foo'
         17        SEND_UNPACK                                                  <array>
         18        CHECK_UNDEF_ARGS                                             
         19        DO_FCALL                                          0          
   13    20        INIT_FCALL                                                   'foo'
         21        SEND_UNPACK                                                  <array>
         22        CHECK_UNDEF_ARGS                                             
         23        DO_FCALL                                          0          
   15    24      > RETURN                                                       1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.87 ms | 1474 KiB | 19 Q