3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Anil kumar\r\nAhmedabad\r\nAhmedabad,Goa - 380015, India"; $order = array("\r\n", "\n", "\r"); $order1 = array("<br />", "<br />", "<br />"); echo str_replace($order, $order1, $str)."<br />";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tDV75
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $order, !2 = $order1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Anil+kumar%0D%0AAhmedabad%0D%0AAhmedabad%2CGoa+-+380015%2C+India'
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    6     3        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        CONCAT                                           ~7      $6, '%3Cbr+%2F%3E'
          9        ECHO                                                     ~7
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.64 ms | 1394 KiB | 15 Q