3v4l.org

run code in 300+ 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>
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25, 8.0.0 - 8.0.12, 8.1rc1 - rc3
<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>

preferences:
42.26 ms | 461 KiB | 5 Q