3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'ä€'; var_dump(strlen($str)); var_dump(mb_detect_encoding($str, 'auto', true)); $iso = mb_convert_encoding($str, 'iso-8859-1', 'utf-8'); var_dump(strlen($str)); var_dump($str); var_dump(mb_detect_encoding($iso, 'utf-8, iso-8859-1', true)); $utf8 = mb_convert_encoding($iso, 'utf-8', 'iso-8859-1'); $utf8 = mb_convert_encoding($utf8, 'utf-8', iso-8859-1);
Output for git.master, git.master_jit, rfc.property-hooks
int(5) string(5) "UTF-8" int(5) string(5) "ä€" string(10) "ISO-8859-1" Fatal error: Uncaught Error: Undefined constant "iso" in /in/cack9:16 Stack trace: #0 {main} thrown in /in/cack9 on line 16
Process exited with code 255.

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:
62.98 ms | 401 KiB | 8 Q