3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=100;$i<105;$i++) { $arr = array($i => $i-10); } print_r($arr); // Standard asort asort($arr); print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
Branch analysis from position: 2
filename:       /in/Os1eW
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 100
          1      > JMP                                                      ->6
    6     2    >   SUB                                              ~3      !0, 10
          3        INIT_ARRAY                                       ~4      ~3, !0
          4        ASSIGN                                                   !1, ~4
    4     5        PRE_INC                                                  !0
          6    >   IS_SMALLER                                               !0, 105
          7      > JMPNZ                                                    ~7, ->2
    9     8    >   INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
   12    11        INIT_FCALL                                               'asort'
         12        SEND_REF                                                 !1
         13        DO_ICALL                                                 
   13    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.77 ms | 1395 KiB | 17 Q