3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = array( 'q1' => 'qwqwqw', 'w2' => 'www', 'r3'=> 'eee', 'u8'=>'333e', ); $tmp = array_merge(array_slice($tmp,0,2, false), array('third' => 'ddddddddd'),array_slice($tmp,2)); var_dump($tmp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S76nm
function name:  (null)
number of ops:  21
compiled vars:  !0 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'array_merge'
          2        INIT_FCALL                                               'array_slice'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 2
          6        SEND_VAL                                                 <false>
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        SEND_VAL                                                 <array>
         10        INIT_FCALL                                               'array_slice'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 2
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                         $4      
         16        ASSIGN                                                   !0, $4
   11    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.95 ms | 1395 KiB | 19 Q