3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'testéa'; $string = html_entity_decode(preg_replace('~&([A-Za-z]{1,2})(?:acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml|caron);~', '$1', htmlentities($string, ENT_QUOTES, 'UTF-8')), ENT_QUOTES, 'UTF-8'); echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j3TZk
function name:  (null)
number of ops:  19
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test%C3%A9a'
    5     1        INIT_FCALL                                               'html_entity_decode'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%7E%26%28%5BA-Za-z%5D%7B1%2C2%7D%29%28%3F%3Aacute%7Ccedil%7Ccirc%7Cgrave%7Clig%7Corn%7Cring%7Cslash%7Cth%7Ctilde%7Cuml%7Ccaron%29%3B%7E'
          4        SEND_VAL                                                 '%241'
          5        INIT_FCALL                                               'htmlentities'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 3
          8        SEND_VAL                                                 'UTF-8'
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        SEND_VAL                                                 3
         14        SEND_VAL                                                 'UTF-8'
         15        DO_ICALL                                         $4      
         16        ASSIGN                                                   !0, $4
    7    17        ECHO                                                     !0
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.41 ms | 1395 KiB | 19 Q