3v4l.org

run code in 300+ PHP versions simultaneously
<?php $imgs = array('img 1','img 2','img 3','img 4','img 5','img 6'); $imgNames = array('name 1','name 2','name 3',); foreach($imgs as $files => $img) { if(!isset($imgNames[$files])) { $imgNames[$files] = 'no-name'; } echo 'Image: '.$img.' and Name: '.$imgNames[$files].'<br>'; } ?>
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
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 10
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/YUhtX
function name:  (null)
number of ops:  19
compiled vars:  !0 = $imgs, !1 = $imgNames, !2 = $img, !3 = $files
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2      > FE_RESET_R                                       $6      !0, ->17
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->17
          4    >   ASSIGN                                                   !3, ~7
    7     5        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      !1, !3
          6        BOOL_NOT                                         ~10     ~9
          7      > JMPZ                                                     ~10, ->10
    9     8    >   ASSIGN_DIM                                               !1, !3
          9        OP_DATA                                                  'no-name'
   11    10    >   CONCAT                                           ~12     'Image%3A+', !2
         11        CONCAT                                           ~13     ~12, '+and+Name%3A+'
         12        FETCH_DIM_R                                      ~14     !1, !3
         13        CONCAT                                           ~15     ~13, ~14
         14        CONCAT                                           ~16     ~15, '%3Cbr%3E'
         15        ECHO                                                     ~16
    5    16      > JMP                                                      ->3
         17    >   FE_FREE                                                  $6
   13    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.44 ms | 1393 KiB | 13 Q