3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo htmlentities(" abc<>^&etc'\"wee<>") . "\n"; echo htmlspecialchars(" abc<>^&etc'\"wee<>", 'UTF-8', false);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PVfGT
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'htmlentities'
          1        SEND_VAL                                                 '+abc%3C%3E%5E%26etc%27%22wee%3C%3E'
          2        DO_ICALL                                         $0      
          3        CONCAT                                           ~1      $0, '%0A'
          4        ECHO                                                     ~1
    4     5        INIT_FCALL                                               'htmlspecialchars'
          6        SEND_VAL                                                 '+abc%3C%3E%5E%26etc%27%22wee%3C%3E'
          7        SEND_VAL                                                 'UTF-8'
          8        SEND_VAL                                                 <false>
          9        DO_ICALL                                         $2      
         10        ECHO                                                     $2
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.7 ms | 1394 KiB | 17 Q