3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "\x1B"; print "Compat: " . htmlspecialchars($str, ENT_COMPAT, 'UTF-8') . "\n"; print "Quotes: " . htmlspecialchars($str, ENT_QUOTES, 'UTF-8') . "\n"; print "XML: " . htmlspecialchars($str, ENT_XML1, 'UTF-8') . "\n"; print "XHTML: " . htmlspecialchars($str, ENT_XHTML, 'UTF-8') . "\n"; print "HTML5: " . htmlspecialchars($str, ENT_HTML5, 'UTF-8') . "\n"; print "XML+Disallowed: " . htmlspecialchars($str, ENT_XML1 | ENT_DISALLOWED, 'UTF-8') . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ENdXX
function name:  (null)
number of ops:  50
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%1B'
    4     1        INIT_FCALL                                               'htmlspecialchars'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      'Compat%3A+', $2
          7        CONCAT                                           ~4      ~3, '%0A'
          8        ECHO                                                     ~4
    5     9        INIT_FCALL                                               'htmlspecialchars'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 3
         12        SEND_VAL                                                 'UTF-8'
         13        DO_ICALL                                         $5      
         14        CONCAT                                           ~6      'Quotes%3A+', $5
         15        CONCAT                                           ~7      ~6, '%0A'
         16        ECHO                                                     ~7
    6    17        INIT_FCALL                                               'htmlspecialchars'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 16
         20        SEND_VAL                                                 'UTF-8'
         21        DO_ICALL                                         $8      
         22        CONCAT                                           ~9      'XML%3A+', $8
         23        CONCAT                                           ~10     ~9, '%0A'
         24        ECHO                                                     ~10
    7    25        INIT_FCALL                                               'htmlspecialchars'
         26        SEND_VAR                                                 !0
         27        SEND_VAL                                                 32
         28        SEND_VAL                                                 'UTF-8'
         29        DO_ICALL                                         $11     
         30        CONCAT                                           ~12     'XHTML%3A+', $11
         31        CONCAT                                           ~13     ~12, '%0A'
         32        ECHO                                                     ~13
    8    33        INIT_FCALL                                               'htmlspecialchars'
         34        SEND_VAR                                                 !0
         35        SEND_VAL                                                 48
         36        SEND_VAL                                                 'UTF-8'
         37        DO_ICALL                                         $14     
         38        CONCAT                                           ~15     'HTML5%3A+', $14
         39        CONCAT                                           ~16     ~15, '%0A'
         40        ECHO                                                     ~16
    9    41        INIT_FCALL                                               'htmlspecialchars'
         42        SEND_VAR                                                 !0
         43        SEND_VAL                                                 144
         44        SEND_VAL                                                 'UTF-8'
         45        DO_ICALL                                         $17     
         46        CONCAT                                           ~18     'XML%2BDisallowed%3A+', $17
         47        CONCAT                                           ~19     ~18, '%0A'
         48        ECHO                                                     ~19
         49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.05 ms | 1400 KiB | 15 Q