3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $html = "<!DOCTYPE html><html><head><meta charset=utf-8><style>span::before{ content: \"⚡️\"; }</style></head><body><span></span></body></html>"; $html = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'); $dom->loadHTML( $html ); echo $dom->saveHTML( $dom->documentElement ); echo "\n\n"; echo $dom->saveHTML();
Output for rfc.property-hooks, git.master, git.master_jit
Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /in/KZLZi on line 6 <html><head><meta charset="utf-8"><style>span::before{ content: "&#9889;&#65039;"; }</style></head><body><span></span></body></html> <!DOCTYPE html> <html><head><meta charset="utf-8"><style>span::before{ content: "&#9889;&#65039;"; }</style></head><body><span></span></body></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:
41 ms | 1156 KiB | 4 Q