3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '中國心連心化肥'; $chinese = preg_match("/\p{Han}+/u", $str); echo $chinese; // echo strlen(); // echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/adoq8
function name:  (null)
number of ops:  8
compiled vars:  !0 = $str, !1 = $chinese
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%E4%B8%AD%E5%9C%8B%E5%BF%83%E9%80%A3%E5%BF%83%E5%8C%96%E8%82%A5'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5Cp%7BHan%7D%2B%2Fu'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        ECHO                                                     !1
    6     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.27 ms | 1394 KiB | 15 Q