3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "[h1]This is Just a text, [h1]and this inside it[/h1] This just example[/h1]"; echo str_replace(['[h1]', '[/h1]'], ['<h1>', '</h1>'], $var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q9a41
function name:  (null)
number of ops:  8
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5Bh1%5DThis+is+Just+a+text%2C+%5Bh1%5Dand+this+inside+it%5B%2Fh1%5D+This+just+example%5B%2Fh1%5D'
    4     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <array>
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.04 ms | 1008 KiB | 14 Q