3v4l.org

run code in 300+ PHP versions simultaneously
<?php const START= 0; $len = mb_strlen( "♥", '8bit' ); // 3 echo mb_substr( "♥", START, $len ); // [e2 99 a5]
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/el0vU
function name:  (null)
number of ops:  14
compiled vars:  !0 = $len
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'START', 0
    4     1        INIT_FCALL                                               'mb_strlen'
          2        SEND_VAL                                                 '%E2%99%A5'
          3        SEND_VAL                                                 '8bit'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    5     6        INIT_FCALL                                               'mb_substr'
          7        SEND_VAL                                                 '%E2%99%A5'
          8        FETCH_CONSTANT                                   ~3      'START'
          9        SEND_VAL                                                 ~3
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.79 ms | 1394 KiB | 17 Q