3v4l.org

run code in 300+ 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:  13
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        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 '%0A'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    5     7        INIT_FCALL                                               'strip_tags'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    6    11        ECHO                                                     !1
    7    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.65 ms | 1010 KiB | 15 Q