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]); } ?>
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 = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 19
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 19
Branch analysis from position: 29
Branch analysis from position: 19
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/ftJQ4
function name:  (null)
number of ops:  30
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
    8    17    >   ASSIGN                                                   !1, 0
         18      > JMP                                                      ->27
    9    19    >   INIT_FCALL                                               'sprintf'
         20        SEND_VAL                                                 'Array+element+%25d.+Value+contained+is+%25d'
         21        SEND_VAR                                                 !1
         22        FETCH_DIM_R                                      ~10     !0, !1
         23        SEND_VAL                                                 ~10
         24        DO_ICALL                                         $11     
         25        ECHO                                                     $11
    8    26        ASSIGN_OP                                     1          !1, 1
         27    >   IS_SMALLER                                               !1, 10
         28      > JMPNZ                                                    ~13, ->19
   11    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.33 ms | 1396 KiB | 19 Q