3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = "There are many \r variations of passages\r of Lorem Ipsum available,\r but the majority have suffered\r alteration in some form.\r "; echo preg_replace('/\r\n(?!$)/','"\r\n"',$text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GXPCv
function name:  (null)
number of ops:  5
compiled vars:  !0 = $text
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'There+are+many+%0D%0Avariations+of+passages%0D%0Aof+Lorem+Ipsum+available%2C%0D%0Abut+the+majority+have+suffered%0D%0Aalteration+in+some+form.%0D%0A'
   10     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F%5Cr%5Cn%28%3F%21%24%29%2F', '%22%5Cr%5Cn%22'
          2        OP_DATA                                                      !0
          3        ECHO                                                         ~2
          4      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
226.07 ms | 2137 KiB | 13 Q