3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Some string with text"; echo mb_strlen($text, 'UTF-8'); echo mb_substr($text, 0, 10, 'UTF-8');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PBuMI
function name:  (null)
number of ops:  14
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Some+string+with+text'
    4     1        INIT_FCALL                                               'mb_strlen'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'UTF-8'
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
    6     6        INIT_FCALL                                               'mb_substr'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 10
         10        SEND_VAL                                                 'UTF-8'
         11        DO_ICALL                                         $3      
         12        ECHO                                                     $3
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.46 ms | 1394 KiB | 17 Q