3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = nl2br("foo\nbar"); // nl2br doesn't remove the \n $str = str_replace("\n", "", $str); echo nl2br($str); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SPibn
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'nl2br'
          1        SEND_VAL                                                 'foo%0Abar'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    5     4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '%0A'
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !0, $3
    7    10        INIT_FCALL                                               'nl2br'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        ECHO                                                     $5
    8    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.4 ms | 1394 KiB | 17 Q