3v4l.org

run code in 300+ PHP versions simultaneously
<?php $patterns = ['/\bhim\b/', '/\bhimself\b/', '/\bhe\b/', '/\bhis\b/']; $replacements = ['her', 'herself', 'she', 'her']; $str = 'he went by "himself" (his imaginary friend came with him).';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3HFnO
function name:  (null)
number of ops:  4
compiled vars:  !0 = $patterns, !1 = $replacements, !2 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, 'he+went+by+%22himself%22+%28his+imaginary+friend+came+with+him%29.'
          3      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.57 ms | 1396 KiB | 13 Q