3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '<p>Lorem Ipsum</p><p>is simply dummy</p>'; $output = nl2br(trim(str_replace(array("<p>","</p>"),array("","\n"),$input))); echo $output;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kmhkh
function name:  (null)
number of ops:  15
compiled vars:  !0 = $input, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cp%3ELorem+Ipsum%3C%2Fp%3E%3Cp%3Eis+simply+dummy%3C%2Fp%3E'
    5     1        INIT_FCALL                                               'nl2br'
          2        INIT_FCALL                                               'trim'
          3        INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 <array>
          5        SEND_VAL                                                 <array>
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
    7    13        ECHO                                                     !1
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.23 ms | 1003 KiB | 16 Q