3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr-FR" lang="fr-FR"> <head> <title>Hello World!</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> </head> <body> <?php if(empty($_GET['user'])) { echo htmlentities('Bonjour, invité', ENT_QUOTES, 'iso-8859-1'); } else { echo htmlentities('Bonjour, '.$_GET['user'], ENT_QUOTES, 'iso-8859-1'); } ?> </body>
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected 'version' (T_STRING) in /in/kZ18t on line 1
Process exited with code 255.
Output for 4.3.2 - 5.3.29
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr-FR" lang="fr-FR"> <head> <title>Hello World!</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> </head> <body> Bonjour, invit&Atilde;&copy;</body>
Output for 4.3.0 - 4.3.1
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr-FR" lang="fr-FR"> <head> <title>Hello World!</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> </head> <body>
Process exited with code 139.