3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = "Text about -- and -+- !"; $replacements = [ "--" => "/", "-+-" => ":", ]; echo strtr($text, $replacements);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5PQJL
function name:  (null)
number of ops:  5
compiled vars:  !0 = $text, !1 = $replacements
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'Text+about+--+and+-%2B-+%21'
    3     1        ASSIGN                                                       !1, <array>
    7     2        FRAMELESS_ICALL_2                strtr               ~4      !0, !1
          3        ECHO                                                         ~4
          4      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.02 ms | 2574 KiB | 13 Q