3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x="what is your name?"; $y=strlen($x); echo $x[$y-1]; echo $x[$y-2]; echo $x[$y-3];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qLh2D
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'what+is+your+name%3F'
    3     1        STRLEN                                           ~3      !0
          2        ASSIGN                                                   !1, ~3
    5     3        SUB                                              ~5      !1, 1
          4        FETCH_DIM_R                                      ~6      !0, ~5
          5        ECHO                                                     ~6
    6     6        SUB                                              ~7      !1, 2
          7        FETCH_DIM_R                                      ~8      !0, ~7
          8        ECHO                                                     ~8
    7     9        SUB                                              ~9      !1, 3
         10        FETCH_DIM_R                                      ~10     !0, ~9
         11        ECHO                                                     ~10
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.62 ms | 1384 KiB | 13 Q