3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = ''; if (isset($test) && $test != NULL) { echo '$test set and not null'; } else if (isset($test)) { echo '$test set, even when null'; } else { echo '$test not set and not null'; } if($test == NULL) echo "\nBappa";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
Branch analysis from position: 16
Branch analysis from position: 5
filename:       /in/RDnuo
function name:  (null)
number of ops:  17
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    5     1        ISSET_ISEMPTY_CV                                 ~2      !0
          2      > JMPZ_EX                                          ~2      ~2, ->5
          3    >   IS_NOT_EQUAL                                     ~3      !0, null
          4        BOOL                                             ~2      ~3
          5    > > JMPZ                                                     ~2, ->8
    6     6    >   ECHO                                                     '%24test+set+and+not+null'
          7      > JMP                                                      ->13
    7     8    >   ISSET_ISEMPTY_CV                                         !0
          9      > JMPZ                                                     ~4, ->12
    8    10    >   ECHO                                                     '%24test+set%2C+even+when+null'
         11      > JMP                                                      ->13
   10    12    >   ECHO                                                     '%24test+not+set+and+not+null'
   12    13    >   IS_EQUAL                                                 !0, null
         14      > JMPZ                                                     ~5, ->16
         15    >   ECHO                                                     '%0ABappa'
         16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.74 ms | 1394 KiB | 13 Q