3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.96 ms | 1395 KiB | 21 Q