3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_numbers = array(); for ($i = 0; $i < 256; $i++) { $_numbers['pack'][$i] = pack('v', $i); } echo $_numbers;
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 = 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
Branch analysis from position: 3
filename:       /in/Xvv3W
function name:  (null)
number of ops:  15
compiled vars:  !0 = $_numbers, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->11
    6     3    >   INIT_FCALL                                               'pack'
          4        SEND_VAL                                                 'v'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        FETCH_DIM_W                                      $4      !0, 'pack'
          8        ASSIGN_DIM                                               $4, !1
          9        OP_DATA                                                  $6
    4    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 256
         12      > JMPNZ                                                    ~8, ->3
    8    13    >   ECHO                                                     !0
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.82 ms | 1398 KiB | 15 Q