3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.82 ms | 1394 KiB | 15 Q