3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $referer = str_replace("/en/", "/ru/", "http://fashion/en/items/1") . "<br>"; 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/0N3Vq
function name:  (null)
number of ops:  16
compiled vars:  !0 = $referer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'str_replace'
          1        SEND_VAL                                                 '%2Fen%2F'
          2        SEND_VAL                                                 '%2Fru%2F'
          3        SEND_VAL                                                 'http%3A%2F%2Ffashion%2Fen%2Fitems%2F1'
          4        DO_ICALL                                         $1      
          5        CONCAT                                           ~2      $1, '%3Cbr%3E'
          6        ASSIGN                                           ~3      !0, ~2
          7        ECHO                                                     ~3
    3     8        INIT_FCALL                                               'str_replace'
          9        SEND_VAL                                                 '%2Fru%2F'
         10        SEND_VAL                                                 '%2Fen%2F'
         11        SEND_VAL                                                 'http%3A%2F%2Ffashion%2Fen%2Fitems%2F1'
         12        DO_ICALL                                         $4      
         13        ASSIGN                                           ~5      !0, $4
         14        ECHO                                                     ~5
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.37 ms | 1394 KiB | 15 Q