3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<html> <head> <title><?php $var ?> </title> <title </head> <body> <h3>$var</h3> <?php $var ="title"; ?> </body> </html>
based on k6ZPG
Output for 5.1.0 - 7.1.0
<html> <head> <title> </title> <title </head> <body> <h3>$var</h3> </body> </html>
Output for 5.0.4 - 5.0.5
<html> <head> <title> Notice: Undefined variable: var in /in/EGdW0 on line 3 </title> <title </head> <body> <h3>$var</h3> </body> </html>
Output for 4.3.0 - 5.0.3
<html> <head> <title> Notice: Undefined variable: var in /in/EGdW0 on line 3 </title> <title </head> <body> <h3>$var</h3> </body> </html>