3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'bla bla </container> e <container style="autore"> bla bla bla'; $value = preg_replace('#.*>\s?([a-z]+|\,|\;)\s?<container style="autore">.*#m', 'X\1X', $string); echo $value;
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/aTVZK
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string, !1 = $value
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   8     0  E >   ASSIGN                                                   !0, 'bla+bla%0A%3C%2Fcontainer%3E%0Ae%0A%3Ccontainer+style%3D%22autore%22%3E%0Abla%0Abla%0Abla'
  11     1        INIT_FCALL                                               'preg_replace'
         2        SEND_VAL                                                 '%23.%2A%3E%5Cs%3F%28%5Ba-z%5D%2B%7C%5C%2C%7C%5C%3B%29%5Cs%3F%3Ccontainer+style%3D%22autore%22%3E.%2A%23m'
         3        SEND_VAL                                                 'X%5C1X'
         4        SEND_VAR                                                 !0
         5        DO_ICALL                                         $3      
         6        ASSIGN                                                   !1, $3
  13     7        ECHO                                                     !1
         8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0