3v4l.org

run code in 300+ PHP versions simultaneously
<?php $UserID = '<script>alert(XSS)</script>'; ?> <div> UserID: <?php echo htmlspecialchars((int)$UserID); ?>は見つかりません。 </div>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BGv8t
function name:  (null)
number of ops:  9
compiled vars:  !0 = $UserID
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, '%3Cscript%3Ealert%28XSS%29%3C%2Fscript%3E'
    2     1        ECHO                                                     '%3Cdiv%3E%0A+UserID%3A+'
    3     2        INIT_FCALL                                               'htmlspecialchars'
          3        CAST                                          4  ~2      !0
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
          6        ECHO                                                     $3
          7        ECHO                                                     '%E3%81%AF%E8%A6%8B%E3%81%A4%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%0A%3C%2Fdiv%3E'
    4     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.2 ms | 1394 KiB | 15 Q