3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'I < script><script>> PHP'; echo filter_var($string, FILTER_SANITIZE_STRING), PHP_EOL; echo strip_tags($string), PHP_EOL; echo htmlentities($string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aj0dYv
function name:  (null)
number of ops:  17
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'I+%3C+script%3E%3Cscript%3E%3E+PHP'
    5     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 513
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
          6        ECHO                                                     '%0A'
    6     7        INIT_FCALL                                               'strip_tags'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
         11        ECHO                                                     '%0A'
    7    12        INIT_FCALL                                               'htmlentities'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $4      
         15        ECHO                                                     $4
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.7 ms | 1394 KiB | 19 Q