3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "<b>I like 'PHP' & I think it is \"cool\"</b>"; 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/Oe8jT
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cb%3EI+like+%27PHP%27+%26+I+think+it+is+%22cool%22%3C%2Fb%3E'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'htmlentities'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 3
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'htmlspecialchars'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
         13        SEND_VAL                                                 1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.13 ms | 1385 KiB | 19 Q