3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '$𝄞𝄞'; $array = str_split($string); var_dump(mb_strcut($string, 0, 7)); var_dump(mb_strcut($string, 0, 7, 'latin1'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IYtZR
function name:  (null)
number of ops:  23
compiled vars:  !0 = $string, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%24%F0%9D%84%9E%F0%9D%84%9E'
    4     1        INIT_FCALL                                               'str_split'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    7     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'mb_strcut'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 7
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'mb_strcut'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 7
         18        SEND_VAL                                                 'latin1'
         19        DO_ICALL                                         $7      
         20        SEND_VAR                                                 $7
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.49 ms | 1395 KiB | 19 Q