3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/css"; charset=utf-8> <title><?php echo $var;?>Exercise 3</title> </head> <body> <h3><?php echo $var; ?></h3> <p>PHP, an acronym for Hypertext Preprocessor, is a widely-used open source general-purpose scripting language. It is a cross-platform, HTML embedded server-side scripting language and is especially suited for web development.<a href="http://www.w3resource.com/php/php-home.php">Go to the <?php echo $var; ?></a></p> </body> </html>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/css"; charset=utf-8> <title> Warning: Undefined variable $var in /in/oVMBn on line 5 Exercise 3</title> </head> <body> <h3> Warning: Undefined variable $var in /in/oVMBn on line 8 </h3> <p>PHP, an acronym for Hypertext Preprocessor, is a widely-used open source general-purpose scripting language. It is a cross-platform, HTML embedded server-side scripting language and is especially suited for web development.<a href="http://www.w3resource.com/php/php-home.php">Go to the Warning: Undefined variable $var in /in/oVMBn on line 11 </a></p> </body> </html>
Output for 5.3.7 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/css"; charset=utf-8> <title> Notice: Undefined variable: var in /in/oVMBn on line 5 Exercise 3</title> </head> <body> <h3> Notice: Undefined variable: var in /in/oVMBn on line 8 </h3> <p>PHP, an acronym for Hypertext Preprocessor, is a widely-used open source general-purpose scripting language. It is a cross-platform, HTML embedded server-side scripting language and is especially suited for web development.<a href="http://www.w3resource.com/php/php-home.php">Go to the Notice: Undefined variable: var in /in/oVMBn on line 11 </a></p> </body> </html>
Output for 7.3.32 - 7.3.33
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/css"; charset=utf-8> <title>Exercise 3</title> </head> <body> <h3></h3> <p>PHP, an acronym for Hypertext Preprocessor, is a widely-used open source general-purpose scripting language. It is a cross-platform, HTML embedded server-side scripting language and is especially suited for web development.<a href="http://www.w3resource.com/php/php-home.php">Go to the </a></p> </body> </html>

preferences:
183.41 ms | 402 KiB | 281 Q