3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = 'déjà'; var_dump(('à' === grapheme_substr('éà', 1, -2)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l8s3R
function name:  (null)
number of ops:  11
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'd%C3%A9j%C3%A0'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL_BY_NAME                                       'grapheme_substr'
          3        SEND_VAL_EX                                              '%C3%A9%C3%A0'
          4        SEND_VAL_EX                                              1
          5        SEND_VAL_EX                                              -2
          6        DO_FCALL                                      0  $2      
          7        IS_IDENTICAL                                     ~3      $2, '%C3%A0'
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.45 ms | 1394 KiB | 15 Q