3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.51 ms | 1009 KiB | 17 Q