3v4l.org

run code in 500+ PHP versions simultaneously
<?php $espn_ar["pid_6254"] = "2977742"; $espn_ar["pid_8269"] = "9614"; foreach ($espn_ar as $key => $value) { $imageName = sprintf('images/mfl_%s.png', str_replace('pid_', '', $key)); echo $imageName, PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 16
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/FgMi2
function name:  (null)
number of ops:  18
compiled vars:  !0 = $espn_ar, !1 = $value, !2 = $key, !3 = $imageName
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                                   !0, 'pid_6254'
          1        OP_DATA                                                      '2977742'
    4     2        ASSIGN_DIM                                                   !0, 'pid_8269'
          3        OP_DATA                                                      '9614'
    6     4      > FE_RESET_R                                           $6      !0, ->16
          5    > > FE_FETCH_R                                           ~7      $6, !1, ->16
          6    >   ASSIGN                                                       !2, ~7
    7     7        FRAMELESS_ICALL_3                str_replace         ~9      'pid_', ''
          8        OP_DATA                                                      !2
          9        ROPE_INIT                                         3  ~11     'images%2Fmfl_'
         10        ROPE_ADD                                          1  ~11     ~11, ~9
         11        ROPE_END                                          2  ~10     ~11, '.png'
         12        ASSIGN                                                       !3, ~10
    9    13        ECHO                                                         !3
         14        ECHO                                                         '%0A'
    6    15      > JMP                                                          ->5
         16    >   FE_FREE                                                      $6
   10    17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.99 ms | 1865 KiB | 16 Q