3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '&#x4E2D;&#x6587;&#x7F51;&#x7AD9;100&#x5F3A;'; //$test1 = html_entity_decode($test); $curloutput = iconv("gb2312", "utf8", $test); if (preg_match("/[\p{Han}]/simu", $curloutput)) { echo 'Yay'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/0tkjS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $test, !1 = $curloutput
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%26%23x4E2D%3B%26%23x6587%3B%26%23x7F51%3B%26%23x7AD9%3B100%26%23x5F3A%3B'
    6     1        INIT_FCALL_BY_NAME                                       'iconv'
          2        SEND_VAL_EX                                              'gb2312'
          3        SEND_VAL_EX                                              'utf8'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !1, $3
    8     7        INIT_FCALL                                               'preg_match'
          8        SEND_VAL                                                 '%2F%5B%5Cp%7BHan%7D%5D%2Fsimu'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11      > JMPZ                                                     $5, ->13
    9    12    >   ECHO                                                     'Yay'
   10    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.8 ms | 1394 KiB | 15 Q