3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = 1; var_dump(html_entity_decode($text, ENT_QUOTES, 'UTF-8')); var_dump(htmlspecialchars($text, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2fkmR
function name:  (null)
number of ops:  18
compiled vars:  !0 = $text
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, 1
    5     1        INIT_FCALL                                                   'var_dump'
          2        INIT_FCALL                                                   'html_entity_decode'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     3
          5        SEND_VAL                                                     'UTF-8'
          6        DO_ICALL                                             $2      
          7        SEND_VAR                                                     $2
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'var_dump'
         10        INIT_FCALL                                                   'htmlspecialchars'
         11        SEND_VAR                                                     !0
         12        SEND_VAL                                                     11
         13        SEND_VAL                                                     'UTF-8'
         14        DO_ICALL                                             $4      
         15        SEND_VAR                                                     $4
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.02 ms | 1710 KiB | 16 Q