3v4l.org

run code in 200+ PHP versions simultaneously
<html> <head> <title>{PHP} - Hello World!</title> </head> <body> <h3><?php print "Meu primeiro pangaré." ?></h3> <p> <?php $moedas = 5; if($moedas > 4) { echo "Parabéns! Você comprou sua primeira montaria."; } ?> </p> </br> <span style="color:red;"> <?php echo "YAYYY" , "!!"; //CONCATENA AS STRINGS ?> <?php //* print "YAYYY" , "!!"; //ERRO ?> </span> </body> </html>
based on 3e3Hb
Output for 5.6.0 - 7.4.0
<html> <head> <title>{PHP} - Hello World!</title> </head> <body> <h3>Meu primeiro pangaré.</h3> <p> Parabéns! Você comprou sua primeira montaria. </p> </br> <span style="color:red;"> YAYYY!! </span> </body> </html>