3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('9002209000'=>22.58, '3915909000'=>21.35, '8512302000'=>20.06, '7207190000'=>19.79, '6306120000'=>18.17, '5513130000'=>17.74, '7208400000'=>17.57, '7210492000'=>17.17, '0904209000'=>16.99 ); echo "<pre>"; $b = array_slice($a, 0, 20, true); print_r($b); echo "</pre>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QkbjJ
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>
   14     1        ECHO                                                     '%3Cpre%3E'
   15     2        INIT_FCALL                                               'array_slice'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 20
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !1, $3
   16     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
   17    12        ECHO                                                     '%3C%2Fpre%3E'
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.69 ms | 1394 KiB | 17 Q