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", $test1); if (preg_match("/[\p{Han}]/simu", $curloutput)) { echo 'Yay'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/YMYWG
function name:  (null)
number of ops:  18
compiled vars:  !0 = $test, !1 = $test1, !2 = $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'
    4     1        INIT_FCALL                                               'html_entity_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    6     5        INIT_FCALL_BY_NAME                                       'iconv'
          6        SEND_VAL_EX                                              'gb2312'
          7        SEND_VAL_EX                                              'utf8'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $6      
         10        ASSIGN                                                   !2, $6
    8    11        INIT_FCALL                                               'preg_match'
         12        SEND_VAL                                                 '%2F%5B%5Cp%7BHan%7D%5D%2Fsimu'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $8      
         15      > JMPZ                                                     $8, ->17
    9    16    >   ECHO                                                     'Yay'
   10    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.11 ms | 1395 KiB | 20 Q