3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'ab'; $a = strlen($str); echo $a; if ($a > 1) { echo "\na > 1"; } if (isset($str[1])) { echo "\nisset 1"; } echo "\n\n-----\n".$str[0];
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 7
filename:       /in/Cle6r
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ab'
    5     1        STRLEN                                           ~3      !0
          2        ASSIGN                                                   !1, ~3
    6     3        ECHO                                                     !1
    8     4        IS_SMALLER                                               1, !1
          5      > JMPZ                                                     ~5, ->7
    9     6    >   ECHO                                                     '%0Aa+%3E+1'
   12     7    >   ISSET_ISEMPTY_DIM_OBJ                         0          !0, 1
          8      > JMPZ                                                     ~6, ->10
   13     9    >   ECHO                                                     '%0Aisset+1'
   16    10    >   FETCH_DIM_R                                      ~7      !0, 0
         11        CONCAT                                           ~8      '%0A%0A-----%0A', ~7
         12        ECHO                                                     ~8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.22 ms | 1384 KiB | 13 Q