3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Set internal character encoding to UTF-8 */ mb_internal_encoding('UTF-8'); mb_http_output('UTF-8'); mb_http_input('UTF-8'); mb_language('uni'); mb_regex_encoding('UTF-8'); ob_start('mb_output_handler'); $chars = '안녕하세요ABCDEFGHIJKLMNOPQRSTUVWXYZ안녕하세요'; $len = strlen($chars); for ($i = 0; $i < $len; $i++) { echo mb_substr($chars,$i,1).'|'; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ValueError: mb_http_input(): Argument #1 ($type) must be one of "G", "P", "C", "S", "I", or "L" in /in/TF3s5:6 Stack trace: #0 /in/TF3s5(6): mb_http_input('UTF-8') #1 {main} thrown in /in/TF3s5 on line 6
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:
43.25 ms | 401 KiB | 8 Q