3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_substr('осем', 1, null, '8bit')); var_dump(mb_substr('осем', 1, 7, '8bit'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HW4ek
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'mb_substr'
          2        SEND_VAL                                                 '%D0%BE%D1%81%D0%B5%D0%BC'
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 null
          5        SEND_VAL                                                 '8bit'
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        DO_ICALL                                                 
    3     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'mb_substr'
         11        SEND_VAL                                                 '%D0%BE%D1%81%D0%B5%D0%BC'
         12        SEND_VAL                                                 1
         13        SEND_VAL                                                 7
         14        SEND_VAL                                                 '8bit'
         15        DO_ICALL                                         $2      
         16        SEND_VAR                                                 $2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.63 ms | 1399 KiB | 17 Q