3v4l.org

run code in 500+ PHP versions simultaneously
<?php $phrase = "*title** Some text goes here."; $target = ['**', '*']; $replace = ["</h1>", "<h1>"]; $newPhrase = str_replace($target, $replace, $phrase); echo $newPhrase;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/21HZv
function name:  (null)
number of ops:  8
compiled vars:  !0 = $phrase, !1 = $target, !2 = $replace, !3 = $newPhrase
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%2Atitle%2A%2A+Some+text+goes+here.'
    3     1        ASSIGN                                                       !1, <array>
    4     2        ASSIGN                                                       !2, <array>
    6     3        FRAMELESS_ICALL_3                str_replace         ~7      !1, !2
          4        OP_DATA                                                      !0
          5        ASSIGN                                                       !3, ~7
    8     6        ECHO                                                         !3
    9     7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
152.88 ms | 2008 KiB | 13 Q