3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/html; charset=utf-8'); $str = "颜色代码"; var_dump(mb_strpos($str, "颜色", 0 ,"UTF-8"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0oCDi
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+text%2Fhtml%3B+charset%3Dutf-8'
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, '%E9%A2%9C%E8%89%B2%E4%BB%A3%E7%A0%81'
    7     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'mb_strpos'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 '%E9%A2%9C%E8%89%B2'
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 'UTF-8'
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.95 ms | 1394 KiB | 19 Q