3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!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 5.3.7 - 7.1.0
<!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>