3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $referer = str_replace("\/en\/", "\/ru\/", "http://fashion/en/items/1"); echo$referer = str_replace("\/ru\/", "\/en\/", "http://fashion/en/items/1");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/psnaY
function name:  (null)
number of ops:  15
compiled vars:  !0 = $referer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'str_replace'
          1        SEND_VAL                                                 '%5C%2Fen%5C%2F'
          2        SEND_VAL                                                 '%5C%2Fru%5C%2F'
          3        SEND_VAL                                                 'http%3A%2F%2Ffashion%2Fen%2Fitems%2F1'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                           ~2      !0, $1
          6        ECHO                                                     ~2
    3     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '%5C%2Fru%5C%2F'
          9        SEND_VAL                                                 '%5C%2Fen%5C%2F'
         10        SEND_VAL                                                 'http%3A%2F%2Ffashion%2Fen%2Fitems%2F1'
         11        DO_ICALL                                         $3      
         12        ASSIGN                                           ~4      !0, $3
         13        ECHO                                                     ~4
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.5 ms | 1398 KiB | 15 Q