3v4l.org

run code in 500+ PHP versions simultaneously
<?php $films = [ "Мелодрама" => ["Дневник памяти", "Реальная любовь", "Красотка"], "Боевик" => ["Терминатор", "Крепкий орешек", "Матрица"], "Детектив" => ["Семь", "Молчание ягнят", "Достать ножи"], "Фантастика" => ["Интерстеллар", "Начало", "Прибытие"], ]; // Выводим каждый жанр и его фильмы foreach ($films as $genre => $movieList) { echo "<h2>" . htmlspecialchars($genre) . "</h2>"; echo "<ul>"; foreach ($movieList as $movie) { echo "<li>" . htmlspecialchars($movie) . "</li>"; } echo "</ul>"; } ?><?php $films = [ "Мелодрама" => ["Дневник памяти", "Реальная любовь", "Красотка"], "Боевик" => ["Терминатор", "Крепкий орешек", "Матрица"], "Детектив" => ["Семь", "Молчание ягнят", "Достать ножи"], "Фантастика" => ["Интерстеллар", "Начало", "Прибытие"], ]; // Выводим каждый жанр и его фильмы foreach ($films as $genre => $movieList) { echo "<h2>" . htmlspecialchars($genre) . "</h2>"; echo "<ul>"; foreach ($movieList as $movie) { echo "<li>" . htmlspecialchars($movie) . "</li>"; } echo "</ul>"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 23
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 20
Branch analysis from position: 23
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 47
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 47
Branch analysis from position: 27
2 jumps found. (Code = 77) Position 1 = 36, Position 2 = 44
Branch analysis from position: 36
2 jumps found. (Code = 78) Position 1 = 37, Position 2 = 44
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
Branch analysis from position: 44
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 44
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
Branch analysis from position: 23
filename:       /in/mbhZh
function name:  (null)
number of ops:  49
compiled vars:  !0 = $films, !1 = $movieList, !2 = $genre, !3 = $movie
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   11     1      > FE_RESET_R                                           $5      !0, ->23
          2    > > FE_FETCH_R                                           ~6      $5, !1, ->23
          3    >   ASSIGN                                                       !2, ~6
   12     4        INIT_FCALL                                                   'htmlspecialchars'
          5        SEND_VAR                                                     !2
          6        DO_ICALL                                             $8      
          7        CONCAT                                               ~9      '%3Ch2%3E', $8
          8        CONCAT                                               ~10     ~9, '%3C%2Fh2%3E'
          9        ECHO                                                         ~10
   13    10        ECHO                                                         '%3Cul%3E'
   14    11      > FE_RESET_R                                           $11     !1, ->20
         12    > > FE_FETCH_R                                                   $11, !3, ->20
   15    13    >   INIT_FCALL                                                   'htmlspecialchars'
         14        SEND_VAR                                                     !3
         15        DO_ICALL                                             $12     
         16        CONCAT                                               ~13     '%3Cli%3E', $12
         17        CONCAT                                               ~14     ~13, '%3C%2Fli%3E'
         18        ECHO                                                         ~14
   14    19      > JMP                                                          ->12
         20    >   FE_FREE                                                      $11
   17    21        ECHO                                                         '%3C%2Ful%3E'
   11    22      > JMP                                                          ->2
         23    >   FE_FREE                                                      $5
   22    24        ASSIGN                                                       !0, <array>
   30    25      > FE_RESET_R                                           $16     !0, ->47
         26    > > FE_FETCH_R                                           ~17     $16, !1, ->47
         27    >   ASSIGN                                                       !2, ~17
   31    28        INIT_FCALL                                                   'htmlspecialchars'
         29        SEND_VAR                                                     !2
         30        DO_ICALL                                             $19     
         31        CONCAT                                               ~20     '%3Ch2%3E', $19
         32        CONCAT                                               ~21     ~20, '%3C%2Fh2%3E'
         33        ECHO                                                         ~21
   32    34        ECHO                                                         '%3Cul%3E'
   33    35      > FE_RESET_R                                           $22     !1, ->44
         36    > > FE_FETCH_R                                                   $22, !3, ->44
   34    37    >   INIT_FCALL                                                   'htmlspecialchars'
         38        SEND_VAR                                                     !3
         39        DO_ICALL                                             $23     
         40        CONCAT                                               ~24     '%3Cli%3E', $23
         41        CONCAT                                               ~25     ~24, '%3C%2Fli%3E'
         42        ECHO                                                         ~25
   33    43      > JMP                                                          ->36
         44    >   FE_FREE                                                      $22
   36    45        ECHO                                                         '%3C%2Ful%3E'
   30    46      > JMP                                                          ->26
         47    >   FE_FREE                                                      $16
   39    48      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.73 ms | 1387 KiB | 14 Q