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 svXOR
Output for 5.1.0 - 7.1.0
<html> <head> <title> </title> <title </head> <body> <h3>$var</h3> Notice: Use of undefined constant title - assumed 'title' in /in/k6ZPG on line 10 </body> </html>
Output for 5.0.4 - 5.0.5
<html> <head> <title> Notice: Undefined variable: var in /in/k6ZPG on line 3 </title> <title </head> <body> <h3>$var</h3> Notice: Use of undefined constant title - assumed 'title' in /in/k6ZPG on line 10 </body> </html>
Output for 4.3.0 - 5.0.3
<html> <head> <title> Notice: Undefined variable: var in /in/k6ZPG on line 3 </title> <title </head> <body> <h3>$var</h3> Notice: Use of undefined constant title - assumed 'title' in /in/k6ZPG on line 10 </body> </html>