3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.8 ms | 2300 KiB | 16 Q