3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'PUNÔT 55'; $prevInternalEncoding = mb_internal_encoding(); var_dump($prevInternalEncoding); mb_internal_encoding('UTF-32'); $text = iconv('UTF-16', 'UTF-32', $text); echo mb_substr($text, 5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s3882
function name:  (null)
number of ops:  22
compiled vars:  !0 = $text, !1 = $prevInternalEncoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'PUN%C3%94T+55'
    4     1        INIT_FCALL                                               'mb_internal_encoding'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !1, $3
    5     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'mb_internal_encoding'
          8        SEND_VAL                                                 'UTF-32'
          9        DO_ICALL                                                 
    7    10        INIT_FCALL_BY_NAME                                       'iconv'
         11        SEND_VAL_EX                                              'UTF-16'
         12        SEND_VAL_EX                                              'UTF-32'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0  $7      
         15        ASSIGN                                                   !0, $7
    9    16        INIT_FCALL                                               'mb_substr'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 5
         19        DO_ICALL                                         $9      
         20        ECHO                                                     $9
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.71 ms | 1395 KiB | 22 Q