3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_regex_encoding('UTF-8'); mb_internal_encoding('UTF-8'); $arr = mb_split('\B', "你好"); # Array ( [0] => 你 [1] => 好 ) ## Okay! print_r($arr); $arr = preg_split('|\B|', "abc"); # Array ( [0] => 你 [1] => 你 ) ## Expected Result print_r($arr); ## Instead, this message appears: ## Warning: mb_split(): mbregex search failure in mbsplit(): ## no support in this configuration in /dir/foo.php on line 22 $arr = mb_split('\B', '隨著劇情的推進'); print_r($arr);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 你 [1] => 好 ) Array ( [0] => a [1] => b [2] => c ) Array ( [0] => 隨 [1] => � [2] => �劇 [3] => � [4] => �的 [5] => � [6] => �進 )

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