3v4l.org

run code in 300+ PHP versions simultaneously
<?php $library = [ 'authors' => [ 'john_makkormik@example.com' => [ 'name' => 'Джон Маккормик', 'email' => 'john_makkormik@example.com', 'birthYear' => 1972, ], 'martin_robert@example.com' => [ 'name' => 'Мартин Роберт', 'email' => 'martin_robert@example.com', 'birthYear' => 1957, ], 'charles_levin@example.com' => [ 'name' => 'Чарльз Левин', 'email' => 'charles_levin@example.com', 'birthYear' => 1985, ], ], 'books' => [ [ 'title' => 'Чистый код: создание, анализ и рефакторинг', 'author' => 'martin_robert@example.com', ], [ 'title' => 'Девять алгоритмов, которые изменили будущее', 'author' => 'john_makkormik@example.com', ], [ 'title' => 'Идеальный программист', 'author' => 'martin_robert@example.com', ], [ 'title' => 'Еще одна книга', 'author' => 'charles_levin@example.com', ], ], ]; foreach ($library['books'] as $book) { $author = $library['authors'][$book['author']]; echo $book['title'] . ' - ' . $author['name'] . '(' . $author['email'] . ')' . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/sTNoP
function name:  (null)
number of ops:  21
compiled vars:  !0 = $library, !1 = $book, !2 = $author
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   42     1        FETCH_DIM_R                                      ~4      !0, 'books'
          2      > FE_RESET_R                                       $5      ~4, ->19
          3    > > FE_FETCH_R                                               $5, !1, ->19
   43     4    >   FETCH_DIM_R                                      ~7      !1, 'author'
          5        FETCH_DIM_R                                      ~6      !0, 'authors'
          6        FETCH_DIM_R                                      ~8      ~6, ~7
          7        ASSIGN                                                   !2, ~8
   44     8        FETCH_DIM_R                                      ~10     !1, 'title'
          9        CONCAT                                           ~11     ~10, '+-+'
         10        FETCH_DIM_R                                      ~12     !2, 'name'
         11        CONCAT                                           ~13     ~11, ~12
         12        CONCAT                                           ~14     ~13, '%28'
         13        FETCH_DIM_R                                      ~15     !2, 'email'
         14        CONCAT                                           ~16     ~14, ~15
         15        CONCAT                                           ~17     ~16, '%29'
         16        CONCAT                                           ~18     ~17, '%0A'
         17        ECHO                                                     ~18
   42    18      > JMP                                                      ->3
         19    >   FE_FREE                                                  $5
   45    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.42 ms | 1007 KiB | 13 Q