3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 'PHP Tutorial'; ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#EDITOR> <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/JjMbN 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/JjMbN on line 11
Process exited with code 255.

preferences:
196.13 ms | 1395 KiB | 67 Q