3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $content = 'mesut kahveci'; 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 = 10, Position 2 = 23
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 23
filename:       /in/eFoM2
function name:  (null)
number of ops:  36
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        ASSIGN                                                   !0, 'mesut+kahveci'
    5     4        INIT_FCALL                                               'mb_check_encoding'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'UTF-8'
          7        DO_ICALL                                         $3      
          8        BOOL_NOT                                         ~4      $3
          9      > JMPNZ_EX                                         ~4      ~4, ->23
    6    10    >   INIT_FCALL                                               'mb_convert_encoding'
         11        INIT_FCALL                                               'mb_convert_encoding'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 'UTF-32'
         14        SEND_VAL                                                 'UTF-8'
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        SEND_VAL                                                 'UTF-8'
         18        SEND_VAL                                                 'UTF-32'
         19        DO_ICALL                                         $6      
         20        IS_IDENTICAL                                     ~7      !0, $6
         21        BOOL_NOT                                         ~8      ~7
         22        BOOL                                             ~4      ~8
         23    > > JMPZ                                                     ~4, ->29
    8    24    >   INIT_FCALL                                               'mb_convert_encoding'
         25        SEND_VAR                                                 !0
         26        SEND_VAL                                                 'UTF-8'
         27        DO_ICALL                                         $9      
         28        ASSIGN                                                   !0, $9
   11    29    >   INIT_FCALL                                               'mb_convert_case'
         30        SEND_VAR                                                 !0
         31        SEND_VAL                                                 0
         32        SEND_VAL                                                 'UTF-8'
         33        DO_ICALL                                         $11     
         34        ECHO                                                     $11
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.65 ms | 1388 KiB | 21 Q