3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.21 ms | 1394 KiB | 17 Q