3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = 'PHP Tutorial'; ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title><?php echo $var; ?> </title> </head> <body> <h3><?php ech $var; ?></h3> <p>hier komt tekst over de tutorial en als ik nu een php command geef staat hier <?php echo $var; ?></p> </body> </html>
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '$var' (T_VARIABLE) in /in/YW04m on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/YW04m on line 11
Process exited with code 255.