3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.45 ms | 1392 KiB | 13 Q