3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1 => 0, 2, 3, 4); print_r($array); array_splice($array, 3, count($array), array_merge(array('x'), array_slice($array, 3))); print_r($array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U7brB
function name:  (null)
number of ops:  23
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'array_splice'
          5        SEND_REF                                                 !0
          6        SEND_VAL                                                 3
          7        COUNT                                            ~3      !0
          8        SEND_VAL                                                 ~3
          9        INIT_FCALL                                               'array_merge'
         10        SEND_VAL                                                 <array>
         11        INIT_FCALL                                               'array_slice'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 3
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                         $5      
         17        SEND_VAR                                                 $5
         18        DO_ICALL                                                 
    5    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
    6    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.51 ms | 1395 KiB | 21 Q