3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $string = "This is \r\n a \r\n test"; echo PHP_EOL; echo preg_replace('/\s+/', ' ', $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1BIgA
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                           ~1      !0, 'This+is+%0D%0A+a+%0D%0A+test'
          1        ECHO                                                     ~1
    4     2        ECHO                                                     '%0A'
    5     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAL                                                 '%2F%5Cs%2B%2F'
          5        SEND_VAL                                                 '+'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $2      
          8        ECHO                                                     $2
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.87 ms | 1008 KiB | 14 Q