3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.57 ms | 1395 KiB | 17 Q