3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.51 ms | 1394 KiB | 15 Q