3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name="';alert('XXOO'); //"; ?> <?php $name="';alert('XXOO'); //"; ?> <script type="text/javascript"> var a = '<?php echo htmlspecialchars($name); ?>'; </script>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RfK58
function name:  (null)
number of ops:  9
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%27%3Balert%28%27XXOO%27%29%3B+%2F%2F'
    5     1        ASSIGN                                                   !0, '%27%3Balert%28%27XXOO%27%29%3B+%2F%2F'
    7     2        ECHO                                                     '%0A%3Cscript+type%3D%22text%2Fjavascript%22%3E%0Avar+a+%3D+%27'
    9     3        INIT_FCALL                                               'htmlspecialchars'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ECHO                                                     $3
          7        ECHO                                                     '%27%3B%0A%3C%2Fscript%3E'
   10     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.17 ms | 1385 KiB | 15 Q