3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = utf8_encode('Österreich'); $encoding = mb_detect_encoding($value); $country = $value; if ($encoding != 'ISO-8859-1') { $country = mb_convert_encoding($country, 'ISO-8859-1', $encoding); } $country = mb_strtolower($country, 'ISO-8859-1'); echo $country;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/R3gpi
function name:  (null)
number of ops:  24
compiled vars:  !0 = $value, !1 = $encoding, !2 = $country
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'utf8_encode'
          1        SEND_VAL                                                 '%C3%96sterreich'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'mb_detect_encoding'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        ASSIGN                                                   !2, !0
    6     9        IS_NOT_EQUAL                                             !1, 'ISO-8859-1'
         10      > JMPZ                                                     ~8, ->17
    7    11    >   INIT_FCALL                                               'mb_convert_encoding'
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 'ISO-8859-1'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $9      
         16        ASSIGN                                                   !2, $9
   10    17    >   INIT_FCALL                                               'mb_strtolower'
         18        SEND_VAR                                                 !2
         19        SEND_VAL                                                 'ISO-8859-1'
         20        DO_ICALL                                         $11     
         21        ASSIGN                                                   !2, $11
   11    22        ECHO                                                     !2
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.19 ms | 1395 KiB | 21 Q