3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.05 ms | 1395 KiB | 15 Q