3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.28 ms | 1392 KiB | 13 Q