3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string ="my string ? other string ?"; $str = str_replace(array('?','? first'), array('? first','second text'), $string); echo $str; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t4QKq
function name:  (null)
number of ops:  6
compiled vars:  !0 = $string, !1 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'my+string+%3F+other+string+%3F'
    3     1        FRAMELESS_ICALL_3                str_replace         ~3      <array>, <array>
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !1, ~3
    4     4        ECHO                                                         !1
    5     5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.33 ms | 2228 KiB | 13 Q