3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers = array(1, 2, 3, 4, 5, 6, 7,8,9,10,11,12,13,14,15,16,17,18,19,20); foreach (array_rand($numbers, 19) as $key) { echo '<div class="avatar"><img src="'.$numbers[$key].'.png" /></div>'; }?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/0EHZ9
function name:  (null)
number of ops:  14
compiled vars:  !0 = $numbers, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_rand'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 19
          4        DO_ICALL                                         $3      
          5      > FE_RESET_R                                       $4      $3, ->12
          6    > > FE_FETCH_R                                               $4, !1, ->12
    5     7    >   FETCH_DIM_R                                      ~5      !0, !1
          8        CONCAT                                           ~6      '%3Cdiv+class%3D%22avatar%22%3E%3Cimg+src%3D%22', ~5
          9        CONCAT                                           ~7      ~6, '.png%22+%2F%3E%3C%2Fdiv%3E'
         10        ECHO                                                     ~7
    4    11      > JMP                                                      ->6
         12    >   FE_FREE                                                  $4
    6    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.76 ms | 1394 KiB | 15 Q