3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = html_entity_decode('&auml;&uuml;uu', ENT_COMPAT, 'ISO-8859-1'); echo preg_replace('#(&\#*\w+)[\x00-\x20]+;#u',"$1;",$string); echo "\n"; $string = 'ss'; echo preg_replace('#(&\#*\w+)[\x00-\x20]+;#u',"$1;",$string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tLmYR
function name:  (null)
number of ops:  21
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'html_entity_decode'
          1        SEND_VAL                                                 '%26auml%3B%26uuml%3Buu'
          2        SEND_VAL                                                 2
          3        SEND_VAL                                                 'ISO-8859-1'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    3     6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%23%28%26%5C%23%2A%5Cw%2B%29%5B%5Cx00-%5Cx20%5D%2B%3B%23u'
          8        SEND_VAL                                                 '%241%3B'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $3      
         11        ECHO                                                     $3
    4    12        ECHO                                                     '%0A'
    5    13        ASSIGN                                                   !0, 'ss'
    6    14        INIT_FCALL                                               'preg_replace'
         15        SEND_VAL                                                 '%23%28%26%5C%23%2A%5Cw%2B%29%5B%5Cx00-%5Cx20%5D%2B%3B%23u'
         16        SEND_VAL                                                 '%241%3B'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $5      
         19        ECHO                                                     $5
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.86 ms | 1395 KiB | 17 Q