3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<p align="center">stuff</p>'; echo str_replace(array('<p align="center">','</p>',$str),"",$str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cAg7R
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp+align%3D%22center%22%3Estuff%3C%2Fp%3E'
    3     1        INIT_FCALL                                               'str_replace'
          2        INIT_ARRAY                                       ~2      '%3Cp+align%3D%22center%22%3E'
          3        ADD_ARRAY_ELEMENT                                ~2      '%3C%2Fp%3E'
          4        ADD_ARRAY_ELEMENT                                ~2      !0
          5        SEND_VAL                                                 ~2
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.39 ms | 1394 KiB | 15 Q