3v4l.org

run code in 500+ 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:  10
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        FRAMELESS_ICALL_3                str_replace         ~3      <array>, <array>
          3        OP_DATA                                                      !0
          4        FRAMELESS_ICALL_1                trim                ~4      ~3
          5        SEND_VAL                                                     ~4
          6        DO_ICALL                                             $5      
          7        ASSIGN                                                       !1, $5
    7     8        ECHO                                                         !1
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.93 ms | 2716 KiB | 14 Q