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 = mb_split('\B', "你你"); # 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); # Expected Result
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/08pRo
function name:  (null)
number of ops:  31
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_regex_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'mb_internal_encoding'
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'mb_split'
          7        SEND_VAL                                                 '%5CB'
          8        SEND_VAL                                                 '%E4%BD%A0%E5%A5%BD'
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    7    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'mb_split'
         15        SEND_VAL                                                 '%5CB'
         16        SEND_VAL                                                 '%E4%BD%A0%E4%BD%A0'
         17        DO_ICALL                                         $6      
         18        ASSIGN                                                   !0, $6
   10    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
   14    22        INIT_FCALL                                               'mb_split'
         23        SEND_VAL                                                 '%5CB'
         24        SEND_VAL                                                 '%E9%9A%A8%E8%91%97%E5%8A%87%E6%83%85%E7%9A%84%E6%8E%A8%E9%80%B2'
         25        DO_ICALL                                         $9      
         26        ASSIGN                                                   !0, $9
   15    27        INIT_FCALL                                               'print_r'
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                                 
   16    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.69 ms | 1395 KiB | 21 Q