3v4l.org

run code in 500+ PHP versions simultaneously
<?php header('Content-Type:text/plain;charset=utf-8'); $str='我爱你,中国!我爱你,中国!我爱你,中国!'; echo mb_substr($str,3,5,'UTF8');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v93cL
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'header'
          1        SEND_VAL                                                     'Content-Type%3Atext%2Fplain%3Bcharset%3Dutf-8'
          2        DO_ICALL                                                     
    4     3        ASSIGN                                                       !0, '%E6%88%91%E7%88%B1%E4%BD%A0%2C%E4%B8%AD%E5%9B%BD%EF%BC%81%E6%88%91%E7%88%B1%E4%BD%A0%EF%BC%8C%E4%B8%AD%E5%9B%BD%EF%BC%81%E6%88%91%E7%88%B1%E4%BD%A0%EF%BC%8C%E4%B8%AD%E5%9B%BD%EF%BC%81'
    6     4        INIT_FCALL                                                   'mb_substr'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     3
          7        SEND_VAL                                                     5
          8        SEND_VAL                                                     'UTF8'
          9        DO_ICALL                                             $3      
         10        ECHO                                                         $3
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
134.33 ms | 486 KiB | 11 Q