3v4l.org

run code in 500+ PHP versions simultaneously
<?php $team = [ ['image' => 'A.jpg', 'fname' => 'B', 'lname' => 'C', 'position' => 'D'], ['image' => 'E.jpg', 'fname' => 'F', 'lname' => 'G', 'position' => 'H'], ['image' => 'I.jpg', 'fname' => 'J', 'lname' => 'K', 'position' => 'L'] ]; $pairs = array_chunk($team, 2); foreach ($pairs as $pair) { echo "<div class=\"row\">\n"; foreach ($pair as $player) { echo "\t<div class=\"col s12 m6 grid\">\n"; echo "\t\t<figure class=\"effect-honey\">\n"; echo "\t\t\t<img src=\"{$player['image']}\" alt=\"{$player['fname']} {$player['lname']}\"/>\n"; echo "\t\t\t<figcaption>\n"; echo "\t\t\t\t<h2>{$player['fname']}<span>{$player['lname']}</span> <i>{$player['position']}</i></h2>\n"; echo "\t\t\t</figcaption>\n"; echo "\t\t</figure>\n"; echo "\t</div>\n"; } echo "</div>\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 43
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 43
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 40
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 40
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 40
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
filename:       /in/3Y3GN
function name:  (null)
number of ops:  45
compiled vars:  !0 = $team, !1 = $pairs, !2 = $pair, !3 = $player
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    8     1        INIT_FCALL                                                   'array_chunk'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     2
          4        DO_ICALL                                             $5      
          5        ASSIGN                                                       !1, $5
    9     6      > FE_RESET_R                                           $7      !1, ->43
          7    > > FE_FETCH_R                                                   $7, !2, ->43
   10     8    >   ECHO                                                         '%3Cdiv+class%3D%22row%22%3E%0A'
   11     9      > FE_RESET_R                                           $8      !2, ->40
         10    > > FE_FETCH_R                                                   $8, !3, ->40
   12    11    >   ECHO                                                         '%09%3Cdiv+class%3D%22col+s12+m6+grid%22%3E%0A'
   13    12        ECHO                                                         '%09%09%3Cfigure+class%3D%22effect-honey%22%3E%0A'
   14    13        ROPE_INIT                                         7  ~13     '%09%09%09%3Cimg+src%3D%22'
         14        FETCH_DIM_R                                          ~9      !3, 'image'
         15        ROPE_ADD                                          1  ~13     ~13, ~9
         16        ROPE_ADD                                          2  ~13     ~13, '%22+alt%3D%22'
         17        FETCH_DIM_R                                          ~10     !3, 'fname'
         18        ROPE_ADD                                          3  ~13     ~13, ~10
         19        ROPE_ADD                                          4  ~13     ~13, '+'
         20        FETCH_DIM_R                                          ~11     !3, 'lname'
         21        ROPE_ADD                                          5  ~13     ~13, ~11
         22        ROPE_END                                          6  ~12     ~13, '%22%2F%3E%0A'
         23        ECHO                                                         ~12
   15    24        ECHO                                                         '%09%09%09%3Cfigcaption%3E%0A'
   16    25        ROPE_INIT                                         7  ~21     '%09%09%09%09%3Ch2%3E'
         26        FETCH_DIM_R                                          ~17     !3, 'fname'
         27        ROPE_ADD                                          1  ~21     ~21, ~17
         28        ROPE_ADD                                          2  ~21     ~21, '%3Cspan%3E'
         29        FETCH_DIM_R                                          ~18     !3, 'lname'
         30        ROPE_ADD                                          3  ~21     ~21, ~18
         31        ROPE_ADD                                          4  ~21     ~21, '%3C%2Fspan%3E+%3Ci%3E'
         32        FETCH_DIM_R                                          ~19     !3, 'position'
         33        ROPE_ADD                                          5  ~21     ~21, ~19
         34        ROPE_END                                          6  ~20     ~21, '%3C%2Fi%3E%3C%2Fh2%3E%0A'
         35        ECHO                                                         ~20
   17    36        ECHO                                                         '%09%09%09%3C%2Ffigcaption%3E%0A'
   18    37        ECHO                                                         '%09%09%3C%2Ffigure%3E%0A'
   19    38        ECHO                                                         '%09%3C%2Fdiv%3E%0A'
   11    39      > JMP                                                          ->10
         40    >   FE_FREE                                                      $8
   21    41        ECHO                                                         '%3C%2Fdiv%3E%0A'
    9    42      > JMP                                                          ->7
         43    >   FE_FREE                                                      $7
   22    44      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
212.21 ms | 2733 KiB | 14 Q