3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
179.04 ms | 3340 KiB | 15 Q