3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8_str = 'abcd \xef efgh'; echo iconv_substr( $utf8_str , 0 , 8 , 'UTF-8' ); exit(0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/8kHpa
function name:  (null)
number of ops:  10
compiled vars:  !0 = $utf8_str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'abcd+%5Cxef+efgh'
    5     1        INIT_FCALL_BY_NAME                                       'iconv_substr'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              0
          4        SEND_VAL_EX                                              8
          5        SEND_VAL_EX                                              'UTF-8'
          6        DO_FCALL                                      0  $2      
          7        ECHO                                                     $2
    9     8      > EXIT                                                     0
          9*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.89 ms | 1392 KiB | 16 Q