3v4l.org

run code in 300+ PHP versions simultaneously
<?php $char = '£»øabc'; echo mb_detect_encoding($char).'!'; $char = mb_convert_encoding($char, "Windows-1252", "UTF-8"); echo mb_detect_encoding($char).'!';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SADqB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $char
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C2%A3%C2%BB%C3%B8abc'
    4     1        INIT_FCALL                                               'mb_detect_encoding'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        CONCAT                                           ~3      $2, '%21'
          5        ECHO                                                     ~3
    5     6        INIT_FCALL                                               'mb_convert_encoding'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 'Windows-1252'
          9        SEND_VAL                                                 'UTF-8'
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
    6    12        INIT_FCALL                                               'mb_detect_encoding'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        CONCAT                                           ~7      $6, '%21'
         16        ECHO                                                     ~7
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.45 ms | 1394 KiB | 17 Q