3v4l.org

run code in 300+ PHP versions simultaneously
<?php // expecting 'bcde' to be replaced first echo strtr('abcdef', ['abc'=> '1', 'bcde'=> '2']) . "\n"; // the following two are replaced as expected, just to give more info echo strtr('abcdef', ['a'=> '2', 'abc'=> '1']) . "\n"; echo strtr('abcdef', ['abcd'=> '2', 'abc'=> '1']) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FGDZV
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'strtr'
          1        SEND_VAL                                                 'abcdef'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $0      
          4        CONCAT                                           ~1      $0, '%0A'
          5        ECHO                                                     ~1
    7     6        INIT_FCALL                                               'strtr'
          7        SEND_VAL                                                 'abcdef'
          8        SEND_VAL                                                 <array>
          9        DO_ICALL                                         $2      
         10        CONCAT                                           ~3      $2, '%0A'
         11        ECHO                                                     ~3
    8    12        INIT_FCALL                                               'strtr'
         13        SEND_VAL                                                 'abcdef'
         14        SEND_VAL                                                 <array>
         15        DO_ICALL                                         $4      
         16        CONCAT                                           ~5      $4, '%0A'
         17        ECHO                                                     ~5
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.47 ms | 1394 KiB | 15 Q