3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Tell PHP that we're using UTF-8 strings until the end of the script mb_internal_encoding('UTF-8'); // Tell PHP that we'll be outputting UTF-8 to the browser mb_http_output('UTF-8'); // Our UTF-8 test string $string = 'Êl síla erin lû e-govaned vîn.'; $decoded_stuff = utf8_encode("Müller"); var_dump($decoded_stuff); $string2 = utf8_encode($string); var_dump($string2 ); ?><!doctype html> <html> <head> <meta charset="UTF-8" /> <title>UTF-8 test page</title> </head> <body> <?php foreach($result as $row){ print($row->Body); // This should correctly output our transformed UTF-8 string to the browser } ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 27
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/TTthk
function name:  (null)
number of ops:  30
compiled vars:  !0 = $string, !1 = $decoded_stuff, !2 = $string2, !3 = $result, !4 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'mb_internal_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    7     3        INIT_FCALL                                               'mb_http_output'
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                                 
   10     6        ASSIGN                                                   !0, '%C3%8Al+s%C3%ADla+erin+l%C3%BB+e-govaned+v%C3%AEn.'
   12     7        INIT_FCALL                                               'utf8_encode'
          8        SEND_VAL                                                 'M%C3%BCller'
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !1, $8
   13    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   15    14        INIT_FCALL                                               'utf8_encode'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !2, $11
   16    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
   18    21        ECHO                                                     '%3C%21doctype+html%3E%0A%3Chtml%3E%0A++++%3Chead%3E%0A++++++++%3Cmeta+charset%3D%22UTF-8%22+%2F%3E%0A++++++++%3Ctitle%3EUTF-8+test+page%3C%2Ftitle%3E%0A++++%3C%2Fhead%3E%0A++++%3Cbody%3E%0A++++++++'
   26    22      > FE_RESET_R                                       $14     !3, ->27
         23    > > FE_FETCH_R                                               $14, !4, ->27
   27    24    >   FETCH_OBJ_R                                      ~15     !4, 'Body'
         25        ECHO                                                     ~15
   26    26      > JMP                                                      ->23
         27    >   FE_FREE                                                  $14
   30    28        ECHO                                                     '++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   31    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.13 ms | 1396 KiB | 21 Q