3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dd = "Balen\u00ed<\/span>Metry<\/span>"; echo preg_replace('/\\\\x([0-9a-f]{2})/e', 'chr(hexdec(\'$1\'))', $dd); echo html_entity_decode($dd, ENT_NOQUOTES, 'UTF-8');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/smMAW
function name:  (null)
number of ops:  14
compiled vars:  !0 = $dd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Balen%5Cu00ed%3C%5C%2Fspan%3EMetry%3C%5C%2Fspan%3E'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%5Cx%28%5B0-9a-f%5D%7B2%7D%29%2Fe'
          3        SEND_VAL                                                 'chr%28hexdec%28%27%241%27%29%29'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    5     7        INIT_FCALL                                               'html_entity_decode'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 'UTF-8'
         11        DO_ICALL                                         $3      
         12        ECHO                                                     $3
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.65 ms | 1398 KiB | 17 Q