3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = ' <foo>ciao</foo> <i>ex</i> <asd>boh</asd> <i>ex </i> '; $string = preg_replace('#<i>(.+)([\s]+)</i>#', '<i>\1 :)</i>', $string); echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CdY4i
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'
    9     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+%3A%29%3C%2Fi%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   11     7        ECHO                                                     !0
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.98 ms | 1394 KiB | 15 Q