3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "This is the string you're looking for."; $regex = array('/is/','/string/'); $replace = array('isnt','jedi'); echo preg_replace($regex,$replace,$string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O0CEK
function name:  (null)
number of ops:  7
compiled vars:  !0 = $string, !1 = $regex, !2 = $replace
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'This+is+the+string+you%27re+looking+for.'
    5     1        ASSIGN                                                       !1, <array>
    6     2        ASSIGN                                                       !2, <array>
    8     3        FRAMELESS_ICALL_3                preg_replace        ~6      !1, !2
          4        OP_DATA                                                      !0
          5        ECHO                                                         ~6
          6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
218.09 ms | 2855 KiB | 13 Q