3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
278.21 ms | 1007 KiB | 17 Q