3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array_fill(0, 10, NULL); for ($i = 0; $i < 10; $i += 1) { $arr[$i] = rand(0, 10); } //for ($i = 0; $i < 10; $i += 1) { //echo sprintf("Array element %d. Value contained is %d", $i, $arr[$i]); //} echo $arr[$i]; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
Branch analysis from position: 8
filename:       /in/IkUGr
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arr, !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                                                 10
          3        SEND_VAL                                                 null
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    4     6        ASSIGN                                                   !1, 0
          7      > JMP                                                      ->15
    5     8    >   INIT_FCALL                                               'rand'
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 10
         11        DO_ICALL                                         $6      
         12        ASSIGN_DIM                                               !0, !1
         13        OP_DATA                                                  $6
    4    14        ASSIGN_OP                                     1          !1, 1
         15    >   IS_SMALLER                                               !1, 10
         16      > JMPNZ                                                    ~8, ->8
   11    17    >   FETCH_DIM_R                                      ~9      !0, !1
         18        ECHO                                                     ~9
   12    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.93 ms | 1395 KiB | 17 Q