3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.8 ms | 1395 KiB | 17 Q