3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('mbstring.internal_encoding', 'UTF-8'); mb_regex_encoding('UTF-8'); var_dump(preg_split('|\B|', "abc")); var_dump(mb_split('\B', "abc"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fb4XN
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'ini_set'
          1        SEND_VAL                                                     'mbstring.internal_encoding'
          2        SEND_VAL                                                     'UTF-8'
          3        DO_ICALL                                                     
    3     4        INIT_FCALL                                                   'mb_regex_encoding'
          5        SEND_VAL                                                     'UTF-8'
          6        DO_ICALL                                                     
    5     7        INIT_FCALL                                                   'var_dump'
          8        INIT_FCALL                                                   'preg_split'
          9        SEND_VAL                                                     '%7C%5CB%7C'
         10        SEND_VAL                                                     'abc'
         11        DO_ICALL                                             $2      
         12        SEND_VAR                                                     $2
         13        DO_ICALL                                                     
    6    14        INIT_FCALL                                                   'var_dump'
         15        INIT_FCALL                                                   'mb_split'
         16        SEND_VAL                                                     '%5CB'
         17        SEND_VAL                                                     'abc'
         18        DO_ICALL                                             $4      
         19        SEND_VAR                                                     $4
         20        DO_ICALL                                                     
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.78 ms | 3374 KiB | 18 Q