3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'asdasd `sad` "sdaasd" asd'; echo htmlspecialchars($s, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML5) . PHP_EOL; echo htmlspecialchars($s, ENT_QUOTES, 'UTF-8') . PHP_EOL; echo htmlspecialchars($s, ENT_NOQUOTES, 'UTF-8');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iMGAF
function name:  (null)
number of ops:  21
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'asdasd+%60sad%60+%22sdaasd%22+asd'
    5     1        INIT_FCALL                                               'htmlspecialchars'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 59
          4        DO_ICALL                                         $2      
          5        CONCAT                                           ~3      $2, '%0A'
          6        ECHO                                                     ~3
    8     7        INIT_FCALL                                               'htmlspecialchars'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 3
         10        SEND_VAL                                                 'UTF-8'
         11        DO_ICALL                                         $4      
         12        CONCAT                                           ~5      $4, '%0A'
         13        ECHO                                                     ~5
   10    14        INIT_FCALL                                               'htmlspecialchars'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 'UTF-8'
         18        DO_ICALL                                         $6      
         19        ECHO                                                     $6
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.71 ms | 1010 KiB | 14 Q