3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sites = [['title' => 'Google'], ['title' => 'Bing']]; $links = [['link' => 'www.example1.com'], ['link' => 'www.example2.com']]; foreach ($sites as $index => ['title' => $title]) { printf('%s - <a href="%s">See website</a></br>', $title, $links[$index]['link']); echo "\n"; // <-- for separation since this demo is not rendered html }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/QatsD
function name:  (null)
number of ops:  19
compiled vars:  !0 = $sites, !1 = $links, !2 = $title, !3 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2      > FE_RESET_R                                       $6      !0, ->17
          3    > > FE_FETCH_R                                       ~10     $6, $7, ->17
          4    >   FETCH_LIST_R                                     $8      $7, 'title'
          5        ASSIGN                                                   !2, $8
          6        FREE                                                     $7
          7        ASSIGN                                                   !3, ~10
    7     8        INIT_FCALL                                               'printf'
          9        SEND_VAL                                                 '%25s+-+%3Ca+href%3D%22%25s%22%3ESee+website%3C%2Fa%3E%3C%2Fbr%3E'
         10        SEND_VAR                                                 !2
         11        FETCH_DIM_R                                      ~12     !1, !3
         12        FETCH_DIM_R                                      ~13     ~12, 'link'
         13        SEND_VAL                                                 ~13
         14        DO_ICALL                                                 
    8    15        ECHO                                                     '%0A'
    6    16      > JMP                                                      ->3
         17    >   FE_FREE                                                  $6
    9    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.03 ms | 1436 KiB | 14 Q