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(mb_detect_encoding($iso, 'utf-8, iso-8859-1', true));
Output for git.master, git.master_jit, rfc.property-hooks
int(5) string(5) "UTF-8" int(5) string(10) "ISO-8859-1"

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