3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = array(1, 2, 3, 4); //$b = array_merge(array_slice($a, 0, 2), array(5), array_slice($a, 2)); // $b = array(1, 2, 5, 3, 4) var_export( array_slice($a, 0, 2) + array(5) + array_slice($a, 2) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IXmiX
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    7     1        INIT_FCALL                                                   'var_export'
    8     2        INIT_FCALL                                                   'array_slice'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     0
          5        SEND_VAL                                                     2
          6        DO_ICALL                                             $2      
    9     7        ADD                                                  ~3      $2, <array>
   10     8        INIT_FCALL                                                   'array_slice'
          9        SEND_VAR                                                     !0
         10        SEND_VAL                                                     2
         11        DO_ICALL                                             $4      
         12        ADD                                                  ~5      ~3, $4
         13        SEND_VAL                                                     ~5
    7    14        DO_ICALL                                                     
   11    15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.36 ms | 3334 KiB | 15 Q