3v4l.org

run code in 500+ PHP versions simultaneously
<?php $example = 'hello'; $end = strlen($example)-1; echo $example[$end];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fNuFh
function name:  (null)
number of ops:  7
compiled vars:  !0 = $example, !1 = $end
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'hello'
    4     1        STRLEN                                               ~3      !0
          2        SUB                                                  ~4      ~3, 1
          3        ASSIGN                                                       !1, ~4
    5     4        FETCH_DIM_R                                          ~6      !0, !1
          5        ECHO                                                         ~6
          6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.5 ms | 1882 KiB | 13 Q