3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); echo mb_strtoupper('Le Courrier de Séint-Hyécinthe',"UTF-8"); if(!mb_check_encoding($content, 'UTF-8') OR !($content === mb_convert_encoding(mb_convert_encoding($content, 'UTF-32', 'UTF-8' ), 'UTF-8', 'UTF-32'))) { $content = mb_convert_encoding($content, 'UTF-8'); } echo mb_convert_case($content, MB_CASE_UPPER, "UTF-8");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 14, Position 2 = 27
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 33
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 27
filename:       /in/C7jTM
function name:  (null)
number of ops:  40
compiled vars:  !0 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'mb_internal_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'mb_strtoupper'
          4        SEND_VAL                                                 'Le+Courrier+de+S%C3%A9int-Hy%C3%A9cinthe'
          5        SEND_VAL                                                 'UTF-8'
          6        DO_ICALL                                         $2      
          7        ECHO                                                     $2
    5     8        INIT_FCALL                                               'mb_check_encoding'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'UTF-8'
         11        DO_ICALL                                         $3      
         12        BOOL_NOT                                         ~4      $3
         13      > JMPNZ_EX                                         ~4      ~4, ->27
    6    14    >   INIT_FCALL                                               'mb_convert_encoding'
         15        INIT_FCALL                                               'mb_convert_encoding'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 'UTF-32'
         18        SEND_VAL                                                 'UTF-8'
         19        DO_ICALL                                         $5      
         20        SEND_VAR                                                 $5
         21        SEND_VAL                                                 'UTF-8'
         22        SEND_VAL                                                 'UTF-32'
         23        DO_ICALL                                         $6      
         24        IS_IDENTICAL                                     ~7      !0, $6
         25        BOOL_NOT                                         ~8      ~7
         26        BOOL                                             ~4      ~8
         27    > > JMPZ                                                     ~4, ->33
    8    28    >   INIT_FCALL                                               'mb_convert_encoding'
         29        SEND_VAR                                                 !0
         30        SEND_VAL                                                 'UTF-8'
         31        DO_ICALL                                         $9      
         32        ASSIGN                                                   !0, $9
   11    33    >   INIT_FCALL                                               'mb_convert_case'
         34        SEND_VAR                                                 !0
         35        SEND_VAL                                                 0
         36        SEND_VAL                                                 'UTF-8'
         37        DO_ICALL                                         $11     
         38        ECHO                                                     $11
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.44 ms | 1396 KiB | 23 Q