3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.85 ms | 1394 KiB | 17 Q