3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "<b>I like 'PHP' & I think it is \"cool\"</b>"; echo "\n"; var_dump(htmlentities($string, ENT_QUOTES)); echo "\n"; var_dump(print htmlspecialchars($string)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sUvi7
function name:  (null)
number of ops:  18
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                                                     '%0A'
    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                                                 
    7     9        ECHO                                                     '%0A'
    8    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'htmlspecialchars'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $4      
         14        ECHO                                                     $4
         15        SEND_VAL                                                 1
         16        DO_ICALL                                                 
   10    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.95 ms | 1394 KiB | 19 Q