3v4l.org

run code in 500+ PHP versions simultaneously
<?php $ht = "<p>lorem ipsum</p><p>323</p>"; $ht = str_replace(['</p>', '</div>', '</span>'], "\n", $ht); $str = strip_tags($ht); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a2t4D
function name:  (null)
number of ops:  10
compiled vars:  !0 = $ht, !1 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Cp%3Elorem+ipsum%3C%2Fp%3E%3Cp%3E323%3C%2Fp%3E'
    4     1        FRAMELESS_ICALL_3                str_replace         ~3      <array>, '%0A'
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !0, ~3
    5     4        INIT_FCALL                                                   'strip_tags'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                             $5      
          7        ASSIGN                                                       !1, $5
    6     8        ECHO                                                         !1
    7     9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.71 ms | 2009 KiB | 14 Q