3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '&#x4E2D;'; $anchor = html_entity_decode($test, ENT_COMPAT, 'UTF-8'); if (preg_match("/[\p{Han}]/simu", $anchor)) { 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/1J6H5
function name:  (null)
number of ops:  14
compiled vars:  !0 = $test, !1 = $anchor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%26%23x4E2D%3B'
    4     1        INIT_FCALL                                               'html_entity_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    7     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
    8    12    >   ECHO                                                     'Yay'
   10    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.64 ms | 1385 KiB | 17 Q