3v4l.org

run code in 300+ PHP versions simultaneously
Find the output for the following code. <?php $string = "This text breaks lines."; $string = nl2br($string); print $string; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i2LMQ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     'Find+the+output+for+the+following+code.%0A'
    3     1        ASSIGN                                                   !0, 'This%0Atext%0Abreaks%0Alines.'
    7     2        INIT_FCALL                                               'nl2br'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    8     6        ECHO                                                     !0
    9     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.81 ms | 1393 KiB | 15 Q