3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = 'Le Courrier de Sáint-Hyácinthe'; 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_strtoupper($content);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 26
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 20
filename:       /in/acYBC
function name:  (null)
number of ops:  31
compiled vars:  !0 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Le+Courrier+de+S%C3%A1int-Hy%C3%A1cinthe'
    4     1        INIT_FCALL                                               'mb_check_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'UTF-8'
          4        DO_ICALL                                         $2      
          5        BOOL_NOT                                         ~3      $2
          6      > JMPNZ_EX                                         ~3      ~3, ->20
    5     7    >   INIT_FCALL                                               'mb_convert_encoding'
          8        INIT_FCALL                                               'mb_convert_encoding'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'UTF-32'
         11        SEND_VAL                                                 'UTF-8'
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        SEND_VAL                                                 'UTF-8'
         15        SEND_VAL                                                 'UTF-32'
         16        DO_ICALL                                         $5      
         17        IS_IDENTICAL                                     ~6      !0, $5
         18        BOOL_NOT                                         ~7      ~6
         19        BOOL                                             ~3      ~7
         20    > > JMPZ                                                     ~3, ->26
    7    21    >   INIT_FCALL                                               'mb_convert_encoding'
         22        SEND_VAR                                                 !0
         23        SEND_VAL                                                 'UTF-8'
         24        DO_ICALL                                         $8      
         25        ASSIGN                                                   !0, $8
   10    26    >   INIT_FCALL                                               'mb_strtoupper'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                         $10     
         29        ECHO                                                     $10
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.2 ms | 1396 KiB | 19 Q