3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(grapheme_strlen("\r\n")); var_dump(grapheme_substr(implode("\r\n", ['abc', 'def', 'ghi']), 5));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ntaui
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL_BY_NAME                                       'grapheme_strlen'
          2        SEND_VAL_EX                                              '%0D%0A'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL_BY_NAME                                       'grapheme_substr'
          8        INIT_FCALL                                               'implode'
          9        SEND_VAL                                                 '%0D%0A'
         10        SEND_VAL                                                 <array>
         11        DO_ICALL                                         $2      
         12        SEND_VAR_NO_REF_EX                                       $2
         13        SEND_VAL_EX                                              5
         14        DO_FCALL                                      0  $3      
         15        SEND_VAR                                                 $3
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.2 ms | 1459 KiB | 15 Q