3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Ąčęėįšų"; echo mb_substr($str, 2, mb_strlen($str, 'UTF-8'), 'UTF-8');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nhWOs
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%C4%84%C4%8D%C4%99%C4%97%C4%AF%C5%A1%C5%B3'
    3     1        INIT_FCALL                                               'mb_substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        INIT_FCALL                                               'mb_strlen'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'UTF-8'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        SEND_VAL                                                 'UTF-8'
         10        DO_ICALL                                         $3      
         11        ECHO                                                     $3
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.73 ms | 1398 KiB | 17 Q