3v4l.org

run code in 300+ PHP versions simultaneously
<!Doctype HTML> <html lang="pt-br"> <head> <title> Repetição em PHP </title> </head> <body> <?php $arrayGames = array("Watch_Dogs " => " R$199,90", "Dead Space " => " R$149,90", "Wolfenstein " => " R$189,90"); foreach($arrayGames as $titulo => $preco){ echo"<p>Jogo: " . $titulo . "<img src='img/watch_dogs.jpg' /> </p>" . $preco; } ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/1iCdX
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arrayGames, !1 = $preco, !2 = $titulo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21Doctype+HTML%3E%0A%3Chtml+lang%3D%22pt-br%22%3E%0A%3Chead%3E%0A++++%3Ctitle%3E+Repeti%C3%A7%C3%A3o+em+PHP+%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A++++'
    8     1        ASSIGN                                                   !0, <array>
   11     2      > FE_RESET_R                                       $4      !0, ->10
          3    > > FE_FETCH_R                                       ~5      $4, !1, ->10
          4    >   ASSIGN                                                   !2, ~5
   12     5        CONCAT                                           ~7      '%3Cp%3EJogo%3A+', !2
          6        CONCAT                                           ~8      ~7, '%3Cimg+src%3D%27img%2Fwatch_dogs.jpg%27+%2F%3E+%3C%2Fp%3E'
          7        CONCAT                                           ~9      ~8, !1
          8        ECHO                                                     ~9
   11     9      > JMP                                                      ->3
         10    >   FE_FREE                                                  $4
   15    11        ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   16    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.65 ms | 1393 KiB | 13 Q