3v4l.org

run code in 300+ PHP versions simultaneously
<?php const OPT_READ = 0001; const OPT_WRITE = 0010; const OPT_APPEND = 0011; $do = OPT_WRITE; if ($do == OPT_READ) { echo "Leyendo el archivo"; } elseif ($do == OPT_WRITE) { if ($do != OPT_APPEND){ echo "Reescribiendo el archivo"; } else { echo "Agregando al archivo"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/ekLql
function name:  (null)
number of ops:  20
compiled vars:  !0 = $do
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'OPT_READ', 1
    4     1        DECLARE_CONST                                            'OPT_WRITE', 8
    5     2        DECLARE_CONST                                            'OPT_APPEND', 9
    7     3        FETCH_CONSTANT                                   ~1      'OPT_WRITE'
          4        ASSIGN                                                   !0, ~1
    9     5        FETCH_CONSTANT                                   ~3      'OPT_READ'
          6        IS_EQUAL                                                 !0, ~3
          7      > JMPZ                                                     ~4, ->10
   10     8    >   ECHO                                                     'Leyendo+el+archivo'
          9      > JMP                                                      ->19
   11    10    >   FETCH_CONSTANT                                   ~5      'OPT_WRITE'
         11        IS_EQUAL                                                 !0, ~5
         12      > JMPZ                                                     ~6, ->19
   12    13    >   FETCH_CONSTANT                                   ~7      'OPT_APPEND'
         14        IS_NOT_EQUAL                                             !0, ~7
         15      > JMPZ                                                     ~8, ->18
   13    16    >   ECHO                                                     'Reescribiendo+el+archivo'
         17      > JMP                                                      ->19
   15    18    >   ECHO                                                     'Agregando+al+archivo'
   18    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.44 ms | 1394 KiB | 13 Q