3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.81 ms | 1395 KiB | 19 Q