3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("PUPILPREMIUMFILTER", 'Y'); if(stripos(PUPILPREMIUMFILTER, 'Y') === 0) { echo " and pp.eligible = 1"; } elseif(stripos(PUPILPREMIUMFILTER, 'N') === 0) { echo " and pp.eligible IS NULL"; } else { echo ""; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
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: 13
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
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q6K7J
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'PUPILPREMIUMFILTER'
          2        SEND_VAL                                                 'Y'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'stripos'
          5        FETCH_CONSTANT                                   ~1      'PUPILPREMIUMFILTER'
          6        SEND_VAL                                                 ~1
          7        SEND_VAL                                                 'Y'
          8        DO_ICALL                                         $2      
          9        IS_IDENTICAL                                             $2, 0
         10      > JMPZ                                                     ~3, ->13
    4    11    >   ECHO                                                     '+and+pp.eligible+%3D+1'
         12      > JMP                                                      ->23
    5    13    >   INIT_FCALL                                               'stripos'
         14        FETCH_CONSTANT                                   ~4      'PUPILPREMIUMFILTER'
         15        SEND_VAL                                                 ~4
         16        SEND_VAL                                                 'N'
         17        DO_ICALL                                         $5      
         18        IS_IDENTICAL                                             $5, 0
         19      > JMPZ                                                     ~6, ->22
    6    20    >   ECHO                                                     '+and+pp.eligible+IS+NULL'
         21      > JMP                                                      ->23
    7    22    >   ECHO                                                     ''
    8    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.42 ms | 1395 KiB | 17 Q