3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("YEARGROUP", 11); if (YEARGROUP === 11) { define("YEARGROUPFILTERSQL", "and (s.current_ncyear = '11' or s.current_ncyear = '(11)')" ); } else { define("YEARGROUPFILTERSQL", ' and s.current_ncyear = ' . YEARGROUP); } echo YEARGROUPFILTERSQL; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Afkr0
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'YEARGROUP'
          2        SEND_VAL                                                 11
          3        DO_ICALL                                                 
    3     4        FETCH_CONSTANT                                   ~1      'YEARGROUP'
          5        IS_IDENTICAL                                             ~1, 11
          6      > JMPZ                                                     ~2, ->12
    4     7    >   INIT_FCALL                                               'define'
          8        SEND_VAL                                                 'YEARGROUPFILTERSQL'
          9        SEND_VAL                                                 'and+%28s.current_ncyear+%3D+%2711%27+or+s.current_ncyear+%3D+%27%2811%29%27%29'
         10        DO_ICALL                                                 
         11      > JMP                                                      ->18
    6    12    >   INIT_FCALL                                               'define'
         13        SEND_VAL                                                 'YEARGROUPFILTERSQL'
         14        FETCH_CONSTANT                                   ~4      'YEARGROUP'
         15        CONCAT                                           ~5      '+and+s.current_ncyear+%3D+', ~4
         16        SEND_VAL                                                 ~5
         17        DO_ICALL                                                 
    9    18    >   FETCH_CONSTANT                                   ~7      'YEARGROUPFILTERSQL'
         19        ECHO                                                     ~7
   10    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.63 ms | 1386 KiB | 15 Q