3v4l.org

run code in 300+ PHP versions simultaneously
<?php function splat(...$a){ var_dupm($a); }; $data = [ "data1" => "Hello", "data2" => "World" ]; splat(...$data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jNehV
function name:  (null)
number of ops:  6
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'splat'
          2        SEND_UNPACK                                              !0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_FCALL                                      1          
          5      > RETURN                                                   1

Function splat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jNehV
function name:  splat
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_VARIADIC                                    !0      
    4     1        INIT_FCALL_BY_NAME                                       'var_dupm'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
    5     4      > RETURN                                                   null

End of function splat

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.81 ms | 1388 KiB | 14 Q