3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_detect_encoding('')); var_dump(mb_str_split('', 1)); var_dump(mb_str_split('', 1, 'ASCII')); var_dump(mb_str_split('', 1, 'UTF-8')); var_dump(str_split('', 1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r6sMe
function name:  (null)
number of ops:  37
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'mb_detect_encoding'
          2        SEND_VAL                                                 ''
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'mb_str_split'
          8        SEND_VAL                                                 ''
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                                 
    5    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'mb_str_split'
         15        SEND_VAL                                                 ''
         16        SEND_VAL                                                 1
         17        SEND_VAL                                                 'ASCII'
         18        DO_ICALL                                         $4      
         19        SEND_VAR                                                 $4
         20        DO_ICALL                                                 
    6    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'mb_str_split'
         23        SEND_VAL                                                 ''
         24        SEND_VAL                                                 1
         25        SEND_VAL                                                 'UTF-8'
         26        DO_ICALL                                         $6      
         27        SEND_VAR                                                 $6
         28        DO_ICALL                                                 
    9    29        INIT_FCALL                                               'var_dump'
         30        INIT_FCALL                                               'str_split'
         31        SEND_VAL                                                 ''
         32        SEND_VAL                                                 1
         33        DO_ICALL                                         $8      
         34        SEND_VAR                                                 $8
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.6 ms | 1002 KiB | 17 Q