3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'New line with single quotes: ' . nl2br('\n') . PHP_EOL; echo 'New line with double quotes: ' . nl2br("\n") . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Scktj
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'nl2br'
          1        SEND_VAL                                                 '%5Cn'
          2        DO_ICALL                                         $0      
          3        CONCAT                                           ~1      'New+line+with+single+quotes%3A+', $0
          4        CONCAT                                           ~2      ~1, '%0A'
          5        ECHO                                                     ~2
    4     6        INIT_FCALL                                               'nl2br'
          7        SEND_VAL                                                 '%0A'
          8        DO_ICALL                                         $3      
          9        CONCAT                                           ~4      'New+line+with+double+quotes%3A+', $3
         10        CONCAT                                           ~5      ~4, '%0A'
         11        ECHO                                                     ~5
    5    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.57 ms | 1435 KiB | 14 Q