3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "â€"; var_dump(html_entity_decode(utf_decode($string), ENT_QUOTES, "UTF-8")); var_dump(mb_convert_encoding($string, "HTML-ENTITIES", "UTF-8"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KJSri
function name:  (null)
number of ops:  21
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C3%A2%E2%82%AC'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'html_entity_decode'
          3        INIT_FCALL_BY_NAME                                       'utf_decode'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        SEND_VAL                                                 3
          8        SEND_VAL                                                 'UTF-8'
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'mb_convert_encoding'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 'HTML-ENTITIES'
         16        SEND_VAL                                                 'UTF-8'
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.18 ms | 1395 KiB | 19 Q