3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "\357\277\275\016\357\277\275\357\277\275\357\277\275\357\277\275\357\277\275\357\277\275\357\277\275\357\277\275\357\277\275\357\277\275\357\277\275\357\277\275:\357\277\275\357\277\275\034\357\277\275\357\27"; $charset = mb_detect_encoding($str , "WINDOWS-1255,ASCII"); echo "detect $charset\n"; $str = mb_convert_encoding($str, "UTF-8", $charset); echo convert %str\n;
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ValueError: mb_detect_encoding(): Argument #2 ($encodings) contains invalid encoding "WINDOWS-1255" in /in/9fRuj:3 Stack trace: #0 /in/9fRuj(3): mb_detect_encoding('\xEF\xBF\xBD\x0E\xEF\xBF\xBD\xEF\xBF\xBD\xEF\xBF\xBD\xEF\xBF...', 'WINDOWS-1255,AS...') #1 {main} thrown in /in/9fRuj on line 3
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:
50.34 ms | 401 KiB | 8 Q