3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo mb_detect_encoding("â€"); echo mb_convert_encoding("â€", "UTF-8", "HTML-ENTITIES");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7gVta
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_detect_encoding'
          1        SEND_VAL                                                 '%C3%A2%E2%82%AC'
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
    5     4        INIT_FCALL                                               'mb_convert_encoding'
          5        SEND_VAL                                                 '%C3%A2%E2%82%AC'
          6        SEND_VAL                                                 'UTF-8'
          7        SEND_VAL                                                 'HTML-ENTITIES'
          8        DO_ICALL                                         $1      
          9        ECHO                                                     $1
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.99 ms | 1394 KiB | 17 Q