<!DOCTYPE html>
<html>
<body>
<?php
// This is a single line comment
# This is also a single line
comment
/*
This is a multiple lines comment
block
that spans over more than
one line
*/
?>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
Fatal error: Uncaught Error: Undefined constant "comment" in /in/hpnfZ:7
Stack trace:
#0 {main}
thrown in /in/hpnfZ on line 7
Process exited with code 255.
<!DOCTYPE html>
<html>
<body>
Warning: Use of undefined constant comment - assumed 'comment' (this will throw an Error in a future version of PHP) in /in/hpnfZ on line 7
</body>
</html>
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20
<!DOCTYPE html>
<html>
<body>
Notice: Use of undefined constant comment - assumed 'comment' in /in/hpnfZ on line 7
</body>
</html>