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>
Output for git.master, git.master_jit, rfc.property-hooks
<!Doctype HTML> <html lang="pt-br"> <head> <title> Repetição em PHP </title> </head> <body> <p>Jogo: Watch_Dogs <img src='img/watch_dogs.jpg' /> </p> R$199,90<p>Jogo: Dead Space <img src='img/watch_dogs.jpg' /> </p> R$149,90<p>Jogo: Wolfenstein <img src='img/watch_dogs.jpg' /> </p> R$189,90</body> </html>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.21 ms | 402 KiB | 8 Q