3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 0 => '730', 1 => '724', 2 => '720', 3 => '530', 4 => '56', 5 => '76', 6 => '528', 7 => '394', 8 => '390', 9 => '388', ); $a = 5; $keys = array_slice( $array, $a-3, 2 ); var_dump($keys);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I1DRC
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array, !1 = $a, !2 = $keys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   16     1        ASSIGN                                                   !1, 5
   17     2        INIT_FCALL                                               'array_slice'
          3        SEND_VAR                                                 !0
          4        SUB                                              ~5      !1, 3
          5        SEND_VAL                                                 ~5
          6        SEND_VAL                                                 2
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
   19     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
280.23 ms | 1010 KiB | 15 Q