3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo htmlentities("&lt;script&gt;alert('test');&lt;&frasl;script&gt;"); echo "\n"; echo htmlentites(strip_tags("<script>alert('test')</script>"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I0mrU
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'htmlentities'
          1        SEND_VAL                                                 '%26lt%3Bscript%26gt%3Balert%28%27test%27%29%3B%26lt%3B%26frasl%3Bscript%26gt%3B'
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
    3     4        ECHO                                                     '%0A'
    4     5        INIT_FCALL_BY_NAME                                       'htmlentites'
          6        INIT_FCALL                                               'strip_tags'
          7        SEND_VAL                                                 '%3Cscript%3Ealert%28%27test%27%29%3C%2Fscript%3E'
          8        DO_ICALL                                         $1      
          9        SEND_VAR_NO_REF_EX                                       $1
         10        DO_FCALL                                      0  $2      
         11        ECHO                                                     $2
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.25 ms | 1394 KiB | 17 Q