3v4l.org

run code in 300+ PHP versions simultaneously
<?php $any_power_of_two = 65535; $alphabetSize = 64; $values = array_fill(0, $alphabetSize, 0); for ($i = 0; $i < $any_power_of_two; ++$i) { ++$values[$i % $alphabetSize]; } var_dump($values);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 10
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 10
Branch analysis from position: 16
Branch analysis from position: 10
filename:       /in/hFRkh
function name:  (null)
number of ops:  20
compiled vars:  !0 = $any_power_of_two, !1 = $alphabetSize, !2 = $values, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 65535
    4     1        ASSIGN                                                   !1, 64
    5     2        INIT_FCALL                                               'array_fill'
          3        SEND_VAL                                                 0
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 0
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    7     8        ASSIGN                                                   !3, 0
          9      > JMP                                                      ->14
    8    10    >   MOD                                              ~9      !3, !1
         11        FETCH_DIM_RW                                     $10     !2, ~9
         12        PRE_INC                                                  $10
    7    13        PRE_INC                                                  !3
         14    >   IS_SMALLER                                               !3, !0
         15      > JMPNZ                                                    ~13, ->10
   10    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.43 ms | 1460 KiB | 15 Q