3v4l.org

run code in 300+ PHP versions simultaneously
<?php #params = array('limit' => -1); $limit = $params['limit']; for($i = 0; $i < 100; $i++) { $data[$i] = array( 'uid' => $i, 'userid' => 'extrauser' . $i ); } asort($data); print_r(array_slice($data, $start, $limit));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
Branch analysis from position: 4
filename:       /in/UpRaU
function name:  (null)
number of ops:  24
compiled vars:  !0 = $limit, !1 = $params, !2 = $i, !3 = $data, !4 = $start
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_R                                      ~5      !1, 'limit'
          1        ASSIGN                                                   !0, ~5
    4     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->10
    6     4    >   INIT_ARRAY                                       ~9      !2, 'uid'
    7     5        CONCAT                                           ~10     'extrauser', !2
          6        ADD_ARRAY_ELEMENT                                ~9      ~10, 'userid'
    5     7        ASSIGN_DIM                                               !3, !2
    7     8        OP_DATA                                                  ~9
    4     9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, 100
         11      > JMPNZ                                                    ~12, ->4
   10    12    >   INIT_FCALL                                               'asort'
         13        SEND_REF                                                 !3
         14        DO_ICALL                                                 
   11    15        INIT_FCALL                                               'print_r'
         16        INIT_FCALL                                               'array_slice'
         17        SEND_VAR                                                 !3
         18        SEND_VAR                                                 !4
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $14     
         21        SEND_VAR                                                 $14
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.18 ms | 1395 KiB | 19 Q