3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.34 ms | 1395 KiB | 21 Q