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 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
Branch analysis from position: 5
filename:       /in/cG7g2
function name:  (null)
number of ops:  25
compiled vars:  !0 = $params, !1 = $limit, !2 = $i, !3 = $data, !4 = $start
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_R                                      ~6      !0, 'limit'
          2        ASSIGN                                                   !1, ~6
    4     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->11
    6     5    >   INIT_ARRAY                                       ~10     !2, 'uid'
    7     6        CONCAT                                           ~11     'extrauser', !2
          7        ADD_ARRAY_ELEMENT                                ~10     ~11, 'userid'
    5     8        ASSIGN_DIM                                               !3, !2
    7     9        OP_DATA                                                  ~10
    4    10        PRE_INC                                                  !2
         11    >   IS_SMALLER                                               !2, 100
         12      > JMPNZ                                                    ~13, ->5
   10    13    >   INIT_FCALL                                               'asort'
         14        SEND_REF                                                 !3
         15        DO_ICALL                                                 
   11    16        INIT_FCALL                                               'print_r'
         17        INIT_FCALL                                               'array_slice'
         18        SEND_VAR                                                 !3
         19        SEND_VAR                                                 !4
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $15     
         22        SEND_VAR                                                 $15
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.23 ms | 1400 KiB | 19 Q