3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = ['key1' => 3, 'key2' => 4]; var_dump([1, 2, ...array_values($arr1), 5]); var_dump([1, 2, ...$arr1, 5]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jDLei
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arr1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_ARRAY                                       ~2      1
          3        ADD_ARRAY_ELEMENT                                ~2      2
          4        INIT_FCALL                                               'array_values'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        ADD_ARRAY_UNPACK                                 ~2      $3
          8        ADD_ARRAY_ELEMENT                                ~2      5
          9        SEND_VAL                                                 ~2
         10        DO_ICALL                                                 
    4    11        INIT_FCALL                                               'var_dump'
         12        INIT_ARRAY                                       ~5      1
         13        ADD_ARRAY_ELEMENT                                ~5      2
         14        ADD_ARRAY_UNPACK                                 ~5      !0
         15        ADD_ARRAY_ELEMENT                                ~5      5
         16        SEND_VAL                                                 ~5
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.51 ms | 998 KiB | 15 Q