3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input='a³'; $text=str_replace("\n\n", "z000" ,$text); $text=str_replace("\n", "z111" ,$text); $text=filter_var($text,FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_STRIP_LOW); $text=str_replace("z000", "<br/><br/>" ,$text); $text=str_replace("z111", "<br/>" ,$text); echo $text;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QZerm
function name:  (null)
number of ops:  33
compiled vars:  !0 = $input, !1 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a%C2%B3'
    4     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%0A%0A'
          3        SEND_VAL                                                 'z000'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    5     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '%0A'
          9        SEND_VAL                                                 'z111'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
    6    13        INIT_FCALL                                               'filter_var'
         14        SEND_VAR                                                 !1
         15        SEND_VAL                                                 515
         16        SEND_VAL                                                 4
         17        DO_ICALL                                         $7      
         18        ASSIGN                                                   !1, $7
    7    19        INIT_FCALL                                               'str_replace'
         20        SEND_VAL                                                 'z000'
         21        SEND_VAL                                                 '%3Cbr%2F%3E%3Cbr%2F%3E'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $9      
         24        ASSIGN                                                   !1, $9
    8    25        INIT_FCALL                                               'str_replace'
         26        SEND_VAL                                                 'z111'
         27        SEND_VAL                                                 '%3Cbr%2F%3E'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                         $11     
         30        ASSIGN                                                   !1, $11
    9    31        ECHO                                                     !1
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.91 ms | 1396 KiB | 17 Q