3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mb_str_split($string) { return preg_split('/(?<!^)(?!$)/u', $string ); } $string = 'My string &lsquo;to parse&rsquo;'; $string = utf8_encode($string); $string_decoded = html_entity_decode($string, ENT_QUOTES, 'utf-8'); $string_array = mb_str_split($string_decoded); var_dump($string_array);
Output for git.master, git.master_jit
Fatal error: Cannot redeclare mb_str_split() in /in/3FRmG on line 2
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Cannot redeclare mb_str_split() in /in/3FRmG 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:
150.83 ms | 406 KiB | 5 Q