3v4l.org

run code in 300+ PHP versions simultaneously
<?php $flags = 0; $text = "'&*\""; echo htmlspecialchars($text, $flags, 'UTF-8');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BSdvH
function name:  (null)
number of ops:  9
compiled vars:  !0 = $flags, !1 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    5     1        ASSIGN                                                   !1, '%27%26%2A%22'
    7     2        INIT_FCALL                                               'htmlspecialchars'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'UTF-8'
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.21 ms | 1394 KiB | 15 Q