3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encodings = [ 'BASE64', 'HTML-ENTITIES', 'Quoted-Printable', 'UTF-16', 'UTF-16BE', 'UTF-16LE', 'UTF-7', 'UTF7-IMAP', 'JIS', 'ISO-2022-JP', 'ISO-2022-JP-MS', 'GB18030', 'HZ', 'ISO-2022-KR', 'ISO-2022-JP-2004', 'ISO-2022-JP-MOBILE#KDDI', 'CP50220', 'CP50221', 'CP50222', ]; foreach($encodings as $encoding) { var_dump(mb_strcut('???', 0, 2, $encoding)); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/4m5X4
function name:  (null)
number of ops:  15
compiled vars:  !0 = $encodings, !1 = $encoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   24     1      > FE_RESET_R                                       $3      !0, ->13
          2    > > FE_FETCH_R                                               $3, !1, ->13
   25     3    >   INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'mb_strcut'
          5        SEND_VAL                                                 '%3F%3F%3F'
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 2
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                                 
   24    12      > JMP                                                      ->2
         13    >   FE_FREE                                                  $3
   28    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.71 ms | 1000 KiB | 15 Q