3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( bin2hex( html_entity_decode( htmlspecialchars( "\xc0\x80", ENT_NOQUOTES, 'UTF-8' ) ) ) ); var_dump( bin2hex( html_entity_decode( htmlspecialchars( "\xc2", ENT_NOQUOTES, 'UTF-8' ) ) ) ); var_dump( bin2hex( html_entity_decode( htmlspecialchars( "\xe0\x80\x80", ENT_NOQUOTES, 'UTF-8' ) ) ) ); var_dump( bin2hex( html_entity_decode( htmlspecialchars( "\xf4\x90\x80\x80", ENT_NOQUOTES, 'UTF-8' ) ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/shGV3
function name:  (null)
number of ops:  57
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'bin2hex'
          2        INIT_FCALL                                               'html_entity_decode'
          3        INIT_FCALL                                               'htmlspecialchars'
          4        SEND_VAL                                                 '%C0%80'
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 'UTF-8'
          7        DO_ICALL                                         $0      
          8        SEND_VAR                                                 $0
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
    4    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'bin2hex'
         16        INIT_FCALL                                               'html_entity_decode'
         17        INIT_FCALL                                               'htmlspecialchars'
         18        SEND_VAL                                                 '%C2'
         19        SEND_VAL                                                 0
         20        SEND_VAL                                                 'UTF-8'
         21        DO_ICALL                                         $4      
         22        SEND_VAR                                                 $4
         23        DO_ICALL                                         $5      
         24        SEND_VAR                                                 $5
         25        DO_ICALL                                         $6      
         26        SEND_VAR                                                 $6
         27        DO_ICALL                                                 
    5    28        INIT_FCALL                                               'var_dump'
         29        INIT_FCALL                                               'bin2hex'
         30        INIT_FCALL                                               'html_entity_decode'
         31        INIT_FCALL                                               'htmlspecialchars'
         32        SEND_VAL                                                 '%E0%80%80'
         33        SEND_VAL                                                 0
         34        SEND_VAL                                                 'UTF-8'
         35        DO_ICALL                                         $8      
         36        SEND_VAR                                                 $8
         37        DO_ICALL                                         $9      
         38        SEND_VAR                                                 $9
         39        DO_ICALL                                         $10     
         40        SEND_VAR                                                 $10
         41        DO_ICALL                                                 
    6    42        INIT_FCALL                                               'var_dump'
         43        INIT_FCALL                                               'bin2hex'
         44        INIT_FCALL                                               'html_entity_decode'
         45        INIT_FCALL                                               'htmlspecialchars'
         46        SEND_VAL                                                 '%F4%90%80%80'
         47        SEND_VAL                                                 0
         48        SEND_VAL                                                 'UTF-8'
         49        DO_ICALL                                         $12     
         50        SEND_VAR                                                 $12
         51        DO_ICALL                                         $13     
         52        SEND_VAR                                                 $13
         53        DO_ICALL                                         $14     
         54        SEND_VAR                                                 $14
         55        DO_ICALL                                                 
         56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.81 ms | 1400 KiB | 21 Q