3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $guesstitlestring='Le Courrier de Sáint-Hyácinthe'; $encoding=mb_detect_encoding($guesstitlestring); if ($encoding!=='UTF-8') $guesstitlestring=mb_convert_encoding($guesstitlestring,'UTF-8',$encoding); echo "DEBUG1 $guesstitlestring\n"; $guesstitlestring=mb_strtoupper($guesstitlestring); echo "DEBUG2 $guesstitlestring\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/XRf8p
function name:  (null)
number of ops:  29
compiled vars:  !0 = $guesstitlestring, !1 = $encoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_internal_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    4     3        ASSIGN                                                   !0, 'Le+Courrier+de+S%C3%A1int-Hy%C3%A1cinthe'
    6     4        INIT_FCALL                                               'mb_detect_encoding'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    7     8        IS_NOT_IDENTICAL                                         !1, 'UTF-8'
          9      > JMPZ                                                     ~6, ->16
         10    >   INIT_FCALL                                               'mb_convert_encoding'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 'UTF-8'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !0, $7
    9    16    >   ROPE_INIT                                     3  ~10     'DEBUG1+'
         17        ROPE_ADD                                      1  ~10     ~10, !0
         18        ROPE_END                                      2  ~9      ~10, '%0A'
         19        ECHO                                                     ~9
   10    20        INIT_FCALL                                               'mb_strtoupper'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $12     
         23        ASSIGN                                                   !0, $12
   11    24        ROPE_INIT                                     3  ~15     'DEBUG2+'
         25        ROPE_ADD                                      1  ~15     ~15, !0
         26        ROPE_END                                      2  ~14     ~15, '%0A'
         27        ECHO                                                     ~14
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.19 ms | 1395 KiB | 21 Q