3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = ' <foo>ciao</foo> <i>ex</i> <asd>boh</asd> <i>ex </i> <i> testo con spazi </i> <i>boh</i> <asd>boh</asd> '; $string = preg_replace('#<i>(.+)([\s]+)</i>#', '<i>\1&#xA0;</i>', $string); echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PoMXc
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%0A%3Cfoo%3Eciao%3C%2Ffoo%3E%0A%3Ci%3Eex%3C%2Fi%3E%0A%3Casd%3Eboh%3C%2Fasd%3E%0A%3Ci%3Eex+%3C%2Fi%3E%0A%3Ci%3E+testo+con+spazi+%3C%2Fi%3E%0A%3Ci%3Eboh%3C%2Fi%3E%0A%3Casd%3Eboh%3C%2Fasd%3E%0A'
   12     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%3Ci%3E%28.%2B%29%28%5B%5Cs%5D%2B%29%3C%2Fi%3E%23'
          3        SEND_VAL                                                 '%3Ci%3E%5C1%26%23xA0%3B%3C%2Fi%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   14     7        ECHO                                                     !0
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.77 ms | 939 KiB | 16 Q