3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "ab cd ef gh"; echo "$a\n"; $b = strtr($a, array("ab"=>"cd", "cd"=>"ab")); echo "$b\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/45uAf
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, 'ab+cd+ef+gh'
    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:
168.51 ms | 1394 KiB | 15 Q