3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-7"> <title>test</title> </head> <body><p>aaaaa' . chr(0xAE) . 'zzzzz</p></body> </html>'; $xml = new DOMDocument("1.0", "iso-8859-7"); $xml->loadHTML($str); echo $xml->saveHTML();
Output for git.master, git.master_jit, rfc.property-hooks
Warning: DOMDocument::loadHTML(): input conversion failed due to input error, bytes 0x7A 0x7A 0x7A 0x7A in /in/7H1BQ on line 12 Warning: DOMDocument::loadHTML(): switching encoding: encoder error in Entity, line: 4 in /in/7H1BQ on line 12 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-7"></head></html>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43 ms | 402 KiB | 8 Q