3v4l.org

run code in 300+ PHP versions simultaneously
<h1>Newline</h1> <?php echo "This is \n broken."; ?> <h1>Not newline</h1> <?php echo 'This is \n broken.'; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vgRpk
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Ch1%3ENewline%3C%2Fh1%3E%0A'
    2     1        ECHO                                                     'This+is+%0A+broken.'
    3     2        ECHO                                                     '%0A%3Ch1%3ENot+newline%3C%2Fh1%3E%0A'
    5     3        ECHO                                                     'This+is+%5Cn+broken.'
          4      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.07 ms | 1396 KiB | 13 Q