3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "foo boo foo boo"; echo "$a\n"; $b = strtr($a, array("foo"=>"boo", "boo"=>"foo")); echo "$b\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iQQIU
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'foo+boo+foo+boo'
    3     1        NOP                                                      
          2        FAST_CONCAT                                      ~3      !0, '%0A'
          3        ECHO                                                     ~3
    4     4        INIT_FCALL                                               'strtr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 <array>
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    5     9        NOP                                                      
         10        FAST_CONCAT                                      ~6      !1, '%0A'
         11        ECHO                                                     ~6
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.28 ms | 1450 KiB | 14 Q