3v4l.org

run code in 300+ 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 = 20
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/FgMi2
function name:  (null)
number of ops:  22
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, ->20
          5    > > FE_FETCH_R                                       ~7      $6, !1, ->20
          6    >   ASSIGN                                                   !2, ~7
    7     7        INIT_FCALL                                               'sprintf'
          8        SEND_VAL                                                 'images%2Fmfl_%25s.png'
          9        INIT_FCALL                                               'str_replace'
         10        SEND_VAL                                                 'pid_'
         11        SEND_VAL                                                 ''
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $9      
         14        SEND_VAR                                                 $9
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !3, $10
    9    17        ECHO                                                     !3
         18        ECHO                                                     '%0A'
    6    19      > JMP                                                      ->5
         20    >   FE_FREE                                                  $6
   10    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.05 ms | 1399 KiB | 17 Q