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 = "0"; var_dump($x !== "" && $x == null); $x = new stdClass(); var_dump($x !== "" && $x == 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 = 46, Position 2 = 48
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
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/a8nVA
function name:  (null)
number of ops:  51
compiled vars:  !0 = $x
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                                 ~2      !0, ''
          3      > JMPZ_EX                                          ~2      ~2, ->6
          4    >   IS_EQUAL                                         ~3      !0, null
          5        BOOL                                             ~2      ~3
          6    >   SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
    5     8        ASSIGN                                                   !0, 0
    6     9        INIT_FCALL                                               'var_dump'
         10        IS_NOT_IDENTICAL                                 ~6      !0, ''
         11      > JMPZ_EX                                          ~6      ~6, ->14
         12    >   IS_EQUAL                                         ~7      !0, null
         13        BOOL                                             ~6      ~7
         14    >   SEND_VAL                                                 ~6
         15        DO_ICALL                                                 
    7    16        ASSIGN                                                   !0, <array>
    8    17        INIT_FCALL                                               'var_dump'
         18        IS_NOT_IDENTICAL                                 ~10     !0, ''
         19      > JMPZ_EX                                          ~10     ~10, ->22
         20    >   IS_EQUAL                                         ~11     !0, null
         21        BOOL                                             ~10     ~11
         22    >   SEND_VAL                                                 ~10
         23        DO_ICALL                                                 
    9    24        ASSIGN                                                   !0, 0
   10    25        INIT_FCALL                                               'var_dump'
         26        IS_NOT_IDENTICAL                                 ~14     !0, ''
         27      > JMPZ_EX                                          ~14     ~14, ->30
         28    >   IS_EQUAL                                         ~15     !0, null
         29        BOOL                                             ~14     ~15
         30    >   SEND_VAL                                                 ~14
         31        DO_ICALL                                                 
   11    32        ASSIGN                                                   !0, '0'
   12    33        INIT_FCALL                                               'var_dump'
         34        IS_NOT_IDENTICAL                                 ~18     !0, ''
         35      > JMPZ_EX                                          ~18     ~18, ->38
         36    >   IS_EQUAL                                         ~19     !0, null
         37        BOOL                                             ~18     ~19
         38    >   SEND_VAL                                                 ~18
         39        DO_ICALL                                                 
   13    40        NEW                                              $21     'stdClass'
         41        DO_FCALL                                      0          
         42        ASSIGN                                                   !0, $21
   14    43        INIT_FCALL                                               'var_dump'
         44        IS_NOT_IDENTICAL                                 ~24     !0, ''
         45      > JMPZ_EX                                          ~24     ~24, ->48
         46    >   IS_EQUAL                                         ~25     !0, null
         47        BOOL                                             ~24     ~25
         48    >   SEND_VAL                                                 ~24
         49        DO_ICALL                                                 
         50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.86 ms | 1400 KiB | 15 Q