3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.27 ms | 1394 KiB | 17 Q