3v4l.org

run code in 500+ PHP versions simultaneously
<?php $san = htmlentities("/blah/file\"</a><script>alert(\"shit\");</script><a%20href=\"/blah/file"); echo $san;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8TNXX
function name:  (null)
number of ops:  6
compiled vars:  !0 = $san
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'htmlentities'
          1        SEND_VAL                                                     '%2Fblah%2Ffile%22%3C%2Fa%3E%3Cscript%3Ealert%28%22shit%22%29%3B%3C%2Fscript%3E%3Ca%2520href%3D%22%2Fblah%2Ffile'
          2        DO_ICALL                                             $1      
          3        ASSIGN                                                       !0, $1
    3     4        ECHO                                                         !0
          5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.01 ms | 3322 KiB | 14 Q