3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'Bob&rsquo;s Burgers'; // 1. Convert to plain text $data = mb_convert_encoding($data, 'UTF-8', 'HTML-ENTITIES'); // 2. Upper case $data = mb_strtoupper($data, 'UTF-8'); // 3. Encode back to 7-bit ASCII $data = mb_convert_encoding($data, 'HTML-ENTITIES', 'UTF-8'); var_dump($data);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /in/l4WON on line 9 string(19) "BOB&rsquo;S BURGERS"

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:
174.04 ms | 406 KiB | 5 Q