3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(); $test['eval_none'] = ''; $test['eval_zero'] = 0; $test['eval_null'] = null; $test['eval_false'] = false; $test['eval_true'] = true; var_dump('NONE-EXISTENT'); if (isset($test['eval_nonexixtent'])) var_dump('None-existent is set.'); if (!isset($test['eval_nonexixtent'])) var_dump('None-existent is not set.'); if (empty($test['eval_nonexixtent'])) var_dump('None-existent is empty.'); if (!empty($test['eval_nonexixtent'])) var_dump('None-existent is not empty.'); var_dump('-------------'); var_dump('NONE'); if (isset($test['eval_none'])) var_dump('None is set.'); if (!isset($test['eval_none'])) var_dump('None is not set.'); if (empty($test['eval_none'])) var_dump('None is empty.'); if (!empty($test['eval_none'])) var_dump('None is not empty.'); var_dump('-------------'); var_dump('ZERO'); if (isset($test['eval_zero'])) var_dump('Zero is set.'); if (!isset($test['eval_zero'])) var_dump('Zero is not set.'); if (empty($test['eval_zero'])) var_dump('Zero is empty.'); if (!empty($test['eval_zero'])) var_dump('Zero is not empty.'); var_dump('-------------'); var_dump('NULL'); if (isset($test['eval_null'])) var_dump('Null is set.'); if (!isset($test['eval_null'])) var_dump('Null is not set.'); if (empty($test['eval_null'])) var_dump('Null is empty.'); if (!empty($test['eval_null'])) var_dump('Null is not empty.'); var_dump('-------------'); var_dump('FALSE'); if (isset($test['eval_false'])) var_dump('False is set.'); if (!isset($test['eval_false'])) var_dump('False is not set.'); if (empty($test['eval_false'])) var_dump('False is empty.'); if (!empty($test['eval_false'])) var_dump('False is not empty.'); var_dump('-------------'); var_dump('TRUE'); if (isset($test['eval_true'])) var_dump('True is set.'); if (!isset($test['eval_true'])) var_dump('True is not set.'); if (empty($test['eval_true'])) var_dump('True is empty.'); if (!empty($test['eval_true'])) var_dump('True is not empty.'); var_dump('-------------');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 25
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 47
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 50, Position 2 = 53
Branch analysis from position: 50
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 58
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 61, Position 2 = 64
Branch analysis from position: 61
2 jumps found. (Code = 43) Position 1 = 72, Position 2 = 75
Branch analysis from position: 72
2 jumps found. (Code = 43) Position 1 = 78, Position 2 = 81
Branch analysis from position: 78
2 jumps found. (Code = 43) Position 1 = 83, Position 2 = 86
Branch analysis from position: 83
2 jumps found. (Code = 43) Position 1 = 89, Position 2 = 92
Branch analysis from position: 89
2 jumps found. (Code = 43) Position 1 = 100, Position 2 = 103
Branch analysis from position: 100
2 jumps found. (Code = 43) Position 1 = 106, Position 2 = 109
Branch analysis from position: 106
2 jumps found. (Code = 43) Position 1 = 111, Position 2 = 114
Branch analysis from position: 111
2 jumps found. (Code = 43) Position 1 = 117, Position 2 = 120
Branch analysis from position: 117
2 jumps found. (Code = 43) Position 1 = 128, Position 2 = 131
Branch analysis from position: 128
2 jumps found. (Code = 43) Position 1 = 134, Position 2 = 137
Branch analysis from position: 134
2 jumps found. (Code = 43) Position 1 = 139, Position 2 = 142
Branch analysis from position: 139
2 jumps found. (Code = 43) Position 1 = 145, Position 2 = 148
Branch analysis from position: 145
2 jumps found. (Code = 43) Position 1 = 156, Position 2 = 159
Branch analysis from position: 156
2 jumps found. (Code = 43) Position 1 = 162, Position 2 = 165
Branch analysis from position: 162
2 jumps found. (Code = 43) Position 1 = 167, Position 2 = 170
Branch analysis from position: 167
2 jumps found. (Code = 43) Position 1 = 173, Position 2 = 176
Branch analysis from position: 173
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 176
Branch analysis from position: 170
Branch analysis from position: 165
Branch analysis from position: 159
Branch analysis from position: 148
Branch analysis from position: 142
Branch analysis from position: 137
Branch analysis from position: 131
Branch analysis from position: 120
Branch analysis from position: 114
Branch analysis from position: 109
Branch analysis from position: 103
Branch analysis from position: 92
Branch analysis from position: 86
Branch analysis from position: 81
Branch analysis from position: 75
Branch analysis from position: 64
Branch analysis from position: 58
Branch analysis from position: 53
Branch analysis from position: 47
Branch analysis from position: 36
Branch analysis from position: 30
Branch analysis from position: 25
Branch analysis from position: 19
filename:       /in/EdcWs
function name:  (null)
number of ops:  180
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 'eval_none'
          2        OP_DATA                                                  ''
    5     3        ASSIGN_DIM                                               !0, 'eval_zero'
          4        OP_DATA                                                  0
    6     5        ASSIGN_DIM                                               !0, 'eval_null'
          6        OP_DATA                                                  null
    7     7        ASSIGN_DIM                                               !0, 'eval_false'
          8        OP_DATA                                                  <false>
    8     9        ASSIGN_DIM                                               !0, 'eval_true'
         10        OP_DATA                                                  <true>
   10    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAL                                                 'NONE-EXISTENT'
         13        DO_ICALL                                                 
   11    14        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'eval_nonexixtent'
         15      > JMPZ                                                     ~8, ->19
         16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAL                                                 'None-existent+is+set.'
         18        DO_ICALL                                                 
   12    19    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~10     !0, 'eval_nonexixtent'
         20        BOOL_NOT                                         ~11     ~10
         21      > JMPZ                                                     ~11, ->25
         22    >   INIT_FCALL                                               'var_dump'
         23        SEND_VAL                                                 'None-existent+is+not+set.'
         24        DO_ICALL                                                 
   13    25    >   ISSET_ISEMPTY_DIM_OBJ                         1          !0, 'eval_nonexixtent'
         26      > JMPZ                                                     ~13, ->30
         27    >   INIT_FCALL                                               'var_dump'
         28        SEND_VAL                                                 'None-existent+is+empty.'
         29        DO_ICALL                                                 
   14    30    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~15     !0, 'eval_nonexixtent'
         31        BOOL_NOT                                         ~16     ~15
         32      > JMPZ                                                     ~16, ->36
         33    >   INIT_FCALL                                               'var_dump'
         34        SEND_VAL                                                 'None-existent+is+not+empty.'
         35        DO_ICALL                                                 
   15    36    >   INIT_FCALL                                               'var_dump'
         37        SEND_VAL                                                 '-------------'
         38        DO_ICALL                                                 
   16    39        INIT_FCALL                                               'var_dump'
         40        SEND_VAL                                                 'NONE'
         41        DO_ICALL                                                 
   17    42        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'eval_none'
         43      > JMPZ                                                     ~20, ->47
         44    >   INIT_FCALL                                               'var_dump'
         45        SEND_VAL                                                 'None+is+set.'
         46        DO_ICALL                                                 
   18    47    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~22     !0, 'eval_none'
         48        BOOL_NOT                                         ~23     ~22
         49      > JMPZ                                                     ~23, ->53
         50    >   INIT_FCALL                                               'var_dump'
         51        SEND_VAL                                                 'None+is+not+set.'
         52        DO_ICALL                                                 
   19    53    >   ISSET_ISEMPTY_DIM_OBJ                         1          !0, 'eval_none'
         54      > JMPZ                                                     ~25, ->58
         55    >   INIT_FCALL                                               'var_dump'
         56        SEND_VAL                                                 'None+is+empty.'
         57        DO_ICALL                                                 
   20    58    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~27     !0, 'eval_none'
         59        BOOL_NOT                                         ~28     ~27
         60      > JMPZ                                                     ~28, ->64
         61    >   INIT_FCALL                                               'var_dump'
         62        SEND_VAL                                                 'None+is+not+empty.'
         63        DO_ICALL                                                 
   21    64    >   INIT_FCALL                                               'var_dump'
         65        SEND_VAL                                                 '-------------'
         66        DO_ICALL                                                 
   22    67        INIT_FCALL                                               'var_dump'
         68        SEND_VAL                                                 'ZERO'
         69        DO_ICALL                                                 
   23    70        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'eval_zero'
         71      > JMPZ                                                     ~32, ->75
         72    >   INIT_FCALL                                               'var_dump'
         73        SEND_VAL                                                 'Zero+is+set.'
         74        DO_ICALL                                                 
   24    75    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~34     !0, 'eval_zero'
         76        BOOL_NOT                                         ~35     ~34
         77      > JMPZ                                                     ~35, ->81
         78    >   INIT_FCALL                                               'var_dump'
         79        SEND_VAL                                                 'Zero+is+not+set.'
         80        DO_ICALL                                                 
   25    81    >   ISSET_ISEMPTY_DIM_OBJ                         1          !0, 'eval_zero'
         82      > JMPZ                                                     ~37, ->86
         83    >   INIT_FCALL                                               'var_dump'
         84        SEND_VAL                                                 'Zero+is+empty.'
         85        DO_ICALL                                                 
   26    86    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~39     !0, 'eval_zero'
         87        BOOL_NOT                                         ~40     ~39
         88      > JMPZ                                                     ~40, ->92
         89    >   INIT_FCALL                                               'var_dump'
         90        SEND_VAL                                                 'Zero+is+not+empty.'
         91        DO_ICALL                                                 
   27    92    >   INIT_FCALL                                               'var_dump'
         93        SEND_VAL                                                 '-------------'
         94        DO_ICALL                                                 
   28    95        INIT_FCALL                                               'var_dump'
         96        SEND_VAL                                                 'NULL'
         97        DO_ICALL                                                 
   29    98        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'eval_null'
         99      > JMPZ                                                     ~44, ->103
        100    >   INIT_FCALL                                               'var_dump'
        101        SEND_VAL                                                 'Null+is+set.'
        102        DO_ICALL                                                 
   30   103    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~46     !0, 'eval_null'
        104        BOOL_NOT                                         ~47     ~46
        105      > JMPZ                                                     ~47, ->109
        106    >   INIT_FCALL                                               'var_dump'
        107        SEND_VAL                                                 'Null+is+not+set.'
        108        DO_ICALL                                                 
   31   109    >   ISSET_ISEMPTY_DIM_OBJ                         1          !0, 'eval_null'
        110      > JMPZ                                                     ~49, ->114
        111    >   INIT_FCALL                                               'var_dump'
        112        SEND_VAL                                                 'Null+is+empty.'
        113        DO_ICALL                                                 
   32   114    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~51     !0, 'eval_null'
        115        BOOL_NOT                                         ~52     ~51
        116      > JMPZ                                                     ~52, ->120
        117    >   INIT_FCALL                                               'var_dump'
        118        SEND_VAL                                                 'Null+is+not+empty.'
        119        DO_ICALL                                                 
   33   120    >   INIT_FCALL                                               'var_dump'
        121        SEND_VAL                                                 '-------------'
        122        DO_ICALL                                                 
   34   123        INIT_FCALL                                               'var_dump'
        124        SEND_VAL                                                 'FALSE'
        125        DO_ICALL                                                 
   35   126        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'eval_false'
        127      > JMPZ                                                     ~56, ->131
        128    >   INIT_FCALL                                               'var_dump'
        129        SEND_VAL                                                 'False+is+set.'
        130        DO_ICALL                                                 
   36   131    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~58     !0, 'eval_false'
        132        BOOL_NOT                                         ~59     ~58
        133      > JMPZ                                                     ~59, ->137
        134    >   INIT_FCALL                                               'var_dump'
        135        SEND_VAL                                                 'False+is+not+set.'
        136        DO_ICALL                                                 
   37   137    >   ISSET_ISEMPTY_DIM_OBJ                         1          !0, 'eval_false'
        138      > JMPZ                                                     ~61, ->142
        139    >   INIT_FCALL                                               'var_dump'
        140        SEND_VAL                                                 'False+is+empty.'
        141        DO_ICALL                                                 
   38   142    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~63     !0, 'eval_false'
        143        BOOL_NOT                                         ~64     ~63
        144      > JMPZ                                                     ~64, ->148
        145    >   INIT_FCALL                                               'var_dump'
        146        SEND_VAL                                                 'False+is+not+empty.'
        147        DO_ICALL                                                 
   39   148    >   INIT_FCALL                                               'var_dump'
        149        SEND_VAL                                                 '-------------'
        150        DO_ICALL                                                 
   40   151        INIT_FCALL                                               'var_dump'
        152        SEND_VAL                                                 'TRUE'
        153        DO_ICALL                                                 
   41   154        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'eval_true'
        155      > JMPZ                                                     ~68, ->159
        156    >   INIT_FCALL                                               'var_dump'
        157        SEND_VAL                                                 'True+is+set.'
        158        DO_ICALL                                                 
   42   159    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~70     !0, 'eval_true'
        160        BOOL_NOT                                         ~71     ~70
        161      > JMPZ                                                     ~71, ->165
        162    >   INIT_FCALL                                               'var_dump'
        163        SEND_VAL                                                 'True+is+not+set.'
        164        DO_ICALL                                                 
   43   165    >   ISSET_ISEMPTY_DIM_OBJ                         1          !0, 'eval_true'
        166      > JMPZ                                                     ~73, ->170
        167    >   INIT_FCALL                                               'var_dump'
        168        SEND_VAL                                                 'True+is+empty.'
        169        DO_ICALL                                                 
   44   170    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~75     !0, 'eval_true'
        171        BOOL_NOT                                         ~76     ~75
        172      > JMPZ                                                     ~76, ->176
        173    >   INIT_FCALL                                               'var_dump'
        174        SEND_VAL                                                 'True+is+not+empty.'
        175        DO_ICALL                                                 
   45   176    >   INIT_FCALL                                               'var_dump'
        177        SEND_VAL                                                 '-------------'
        178        DO_ICALL                                                 
        179      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.47 ms | 1417 KiB | 15 Q