3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.99 ms | 1393 KiB | 13 Q