3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = false; var_dump($x !== "" && $x == null); $x = 0; var_dump($x !== "" && $x == null); $x = array(); var_dump($x !== "" && $x == null); $x = 0.0; var_dump($x !== "" && $x == null); $x = null; var_dump($x !== "" && $x == null); // undefined var var_dump($y !== "" && $y == null);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
2 jumps found. (Code = 46) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
2 jumps found. (Code = 46) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
2 jumps found. (Code = 46) Position 1 = 43, Position 2 = 45
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
Branch analysis from position: 38
Branch analysis from position: 30
Branch analysis from position: 22
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/532He
function name:  (null)
number of ops:  48
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <false>
    4     1        INIT_FCALL                                               'var_dump'
          2        IS_NOT_IDENTICAL                                 ~3      !0, ''
          3      > JMPZ_EX                                          ~3      ~3, ->6
          4    >   IS_EQUAL                                         ~4      !0, null
          5        BOOL                                             ~3      ~4
          6    >   SEND_VAL                                                 ~3
          7        DO_ICALL                                                 
    5     8        ASSIGN                                                   !0, 0
    6     9        INIT_FCALL                                               'var_dump'
         10        IS_NOT_IDENTICAL                                 ~7      !0, ''
         11      > JMPZ_EX                                          ~7      ~7, ->14
         12    >   IS_EQUAL                                         ~8      !0, null
         13        BOOL                                             ~7      ~8
         14    >   SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
    7    16        ASSIGN                                                   !0, <array>
    8    17        INIT_FCALL                                               'var_dump'
         18        IS_NOT_IDENTICAL                                 ~11     !0, ''
         19      > JMPZ_EX                                          ~11     ~11, ->22
         20    >   IS_EQUAL                                         ~12     !0, null
         21        BOOL                                             ~11     ~12
         22    >   SEND_VAL                                                 ~11
         23        DO_ICALL                                                 
    9    24        ASSIGN                                                   !0, 0
   10    25        INIT_FCALL                                               'var_dump'
         26        IS_NOT_IDENTICAL                                 ~15     !0, ''
         27      > JMPZ_EX                                          ~15     ~15, ->30
         28    >   IS_EQUAL                                         ~16     !0, null
         29        BOOL                                             ~15     ~16
         30    >   SEND_VAL                                                 ~15
         31        DO_ICALL                                                 
   11    32        ASSIGN                                                   !0, null
   12    33        INIT_FCALL                                               'var_dump'
         34        IS_NOT_IDENTICAL                                 ~19     !0, ''
         35      > JMPZ_EX                                          ~19     ~19, ->38
         36    >   IS_EQUAL                                         ~20     !0, null
         37        BOOL                                             ~19     ~20
         38    >   SEND_VAL                                                 ~19
         39        DO_ICALL                                                 
   14    40        INIT_FCALL                                               'var_dump'
         41        IS_NOT_IDENTICAL                                 ~22     !1, ''
         42      > JMPZ_EX                                          ~22     ~22, ->45
         43    >   IS_EQUAL                                         ~23     !1, null
         44        BOOL                                             ~22     ~23
         45    >   SEND_VAL                                                 ~22
         46        DO_ICALL                                                 
         47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.55 ms | 1400 KiB | 15 Q