3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.91 ms | 1394 KiB | 17 Q