3v4l.org

run code in 500+ PHP versions simultaneously
<?php $value = "<script> alert(44)</script>"; echo htmlspecialchars($value, ENT_QUOTES, 'UTF-8', false);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rchUm
function name:  (null)
number of ops:  9
compiled vars:  !0 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%3Cscript%3E+alert%2844%29%3C%2Fscript%3E'
    3     1        INIT_FCALL                                                   'htmlspecialchars'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     3
          4        SEND_VAL                                                     'UTF-8'
          5        SEND_VAL                                                     <false>
          6        DO_ICALL                                             $2      
          7        ECHO                                                         $2
          8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.85 ms | 2087 KiB | 14 Q