3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<!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>
based on GlgaM
Output for 7.2.0
<!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.1.7
<!DOCTYPE html> <html> <body> Notice: Use of undefined constant comment - assumed 'comment' in /in/hpnfZ on line 7 </body> </html>
Output for 4.3.0 - 5.6.28
<!DOCTYPE html> <html> <body> Notice: Use of undefined constant comment - assumed 'comment' in /in/hpnfZ on line 14 </body> </html>