3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is a 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/io82R
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $regex, !2 = $replace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'This+is+a+string+you%27re+looking+for.'
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    7     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.49 ms | 1394 KiB | 15 Q