3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = html_entity_decode('&auml;&uuml;uu'); 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/j8jZ9
function name:  (null)
number of ops:  19
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        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%23%28%26%5C%23%2A%5Cw%2B%29%5B%5Cx00-%5Cx20%5D%2B%3B%23u'
          6        SEND_VAL                                                 '%241%3B'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
    4    10        ECHO                                                     '%0A'
    5    11        ASSIGN                                                   !0, 'ss'
    6    12        INIT_FCALL                                               'preg_replace'
         13        SEND_VAL                                                 '%23%28%26%5C%23%2A%5Cw%2B%29%5B%5Cx00-%5Cx20%5D%2B%3B%23u'
         14        SEND_VAL                                                 '%241%3B'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $5      
         17        ECHO                                                     $5
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.11 ms | 1395 KiB | 17 Q