3v4l.org

run code in 300+ 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:  8
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        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5Cr%5Cn%28%3F%21%24%29%2F'
          3        SEND_VAL                                                 '%22%5Cr%5Cn%22'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.6 ms | 1003 KiB | 14 Q