3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.2 ms | 1424 KiB | 14 Q