3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo "With single quotes: "; $var = '\n'; // The litteral string echo $var; echo "Text after outputting the variable."; echo "\n\n\n"; // Just to separate the two strings in the demo echo "With double quotes: "; $var = "\n"; // Newline echo $var; echo "Text after outputting the variable.";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bdgjg
function name:  (null)
number of ops:  10
compiled vars:  !0 = $var
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                         'With+single+quotes%3A+'
    4     1        ASSIGN                                                       !0, '%5Cn'
    5     2        ECHO                                                         !0
    6     3        ECHO                                                         'Text+after+outputting+the+variable.'
    8     4        ECHO                                                         '%0A%0A%0A'
   10     5        ECHO                                                         'With+double+quotes%3A+'
   11     6        ASSIGN                                                       !0, '%0A'
   12     7        ECHO                                                         !0
   13     8        ECHO                                                         'Text+after+outputting+the+variable.'
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
254.37 ms | 2597 KiB | 13 Q