3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8 = 'Main ürtürmlicher weißer UTF-8-String mit öbszönen Grüßen!'; function transliterateUpper($in) { $save_locale = setlocale(LC_CTYPE, 'de_DE'); $out = mb_strtoupper( iconv('UTF-8', 'ASCII//TRANSLIT', $in) ); setlocale(LC_CTYPE, $save_locale); return $out; } var_dump(transliterateUpper($utf8));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z27u3
function name:  (null)
number of ops:  8
compiled vars:  !0 = $utf8
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Main+%C3%BCrt%C3%BCrmlicher+wei%C3%9Fer+UTF-8-String+mit+%C3%B6bsz%C3%B6nen+Gr%C3%BC%C3%9Fen%21'
   18     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'transliterateupper'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function transliterateupper:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z27u3
function name:  transliterateUpper
number of ops:  21
compiled vars:  !0 = $in, !1 = $save_locale, !2 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'setlocale'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 'de_DE'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    9     6        INIT_FCALL                                               'mb_strtoupper'
   10     7        INIT_FCALL_BY_NAME                                       'iconv'
          8        SEND_VAL_EX                                              'UTF-8'
          9        SEND_VAL_EX                                              'ASCII%2F%2FTRANSLIT'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
    9    14        ASSIGN                                                   !2, $6
   13    15        INIT_FCALL                                               'setlocale'
         16        SEND_VAL                                                 0
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
   15    19      > RETURN                                                   !2
   16    20*     > RETURN                                                   null

End of function transliterateupper

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.62 ms | 1399 KiB | 23 Q