3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "♥♫ღ♪½Σ"; $strlen = mb_strlen($str); echo $strlen,"\n"; $cut = mb_strcut($str,0,6); echo $cut;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gtt5o
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str, !1 = $strlen, !2 = $cut
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%E2%99%A5%E2%99%AB%E1%83%A6%E2%99%AA%C2%BD%CE%A3'
    4     1        INIT_FCALL                                               'mb_strlen'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        ECHO                                                     !1
          6        ECHO                                                     '%0A'
    6     7        INIT_FCALL                                               'mb_strcut'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 6
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !2, $6
    7    13        ECHO                                                     !2
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.42 ms | 1394 KiB | 17 Q