3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "<b>I like 'PHP' & I think it is \"cool\"</b>"; echo "<pre/>"; var_dump(htmlentities($string, ENT_QUOTES)); var_dump(print htmlspecialchars($string)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZETDN
function name:  (null)
number of ops:  17
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cb%3EI+like+%27PHP%27+%26+I+think+it+is+%22cool%22%3C%2Fb%3E'
    5     1        ECHO                                                     '%3Cpre%2F%3E'
    6     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'htmlentities'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 3
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'htmlspecialchars'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $4      
         13        ECHO                                                     $4
         14        SEND_VAL                                                 1
         15        DO_ICALL                                                 
   10    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.68 ms | 1399 KiB | 19 Q