3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Case A'; if ((!URL_REWRITING_ALL) || !defined('URL_REWRITING_ALL')) { echo 'if is true'; } else { echo 'if is false'; } echo "\n\n"; echo 'Case B'; if ((!defined('URL_REWRITING_ALL')) || (!URL_REWRITING_ALL)) { echo 'if is true'; } else { echo 'if is false'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 47) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 10
2 jumps found. (Code = 47) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
Branch analysis from position: 19
Branch analysis from position: 7
filename:       /in/pZnAQ
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'Case+A'
    3     1        FETCH_CONSTANT                                   ~0      'URL_REWRITING_ALL'
          2        BOOL_NOT                                         ~1      ~0
          3      > JMPNZ_EX                                         ~1      ~1, ->7
          4    >   DEFINED                                          ~2      'URL_REWRITING_ALL'
          5        BOOL_NOT                                         ~3      ~2
          6        BOOL                                             ~1      ~3
          7    > > JMPZ                                                     ~1, ->10
    4     8    >   ECHO                                                     'if+is+true'
          9      > JMP                                                      ->11
    7    10    >   ECHO                                                     'if+is+false'
   10    11    >   ECHO                                                     '%0A%0A'
   12    12        ECHO                                                     'Case+B'
   13    13        DEFINED                                          ~4      'URL_REWRITING_ALL'
         14        BOOL_NOT                                         ~5      ~4
         15      > JMPNZ_EX                                         ~5      ~5, ->19
         16    >   FETCH_CONSTANT                                   ~6      'URL_REWRITING_ALL'
         17        BOOL_NOT                                         ~7      ~6
         18        BOOL                                             ~5      ~7
         19    > > JMPZ                                                     ~5, ->22
   14    20    >   ECHO                                                     'if+is+true'
         21      > JMP                                                      ->23
   17    22    >   ECHO                                                     'if+is+false'
   18    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.61 ms | 1395 KiB | 13 Q