3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(); $test['eval_zero'] = 0; $test['eval_null'] = null; $test['eval_false'] = false; $test['eval_true'] = true; if (isset($test['eval_zero'])) echo 'Zero is set.<br>'; if (!empty($test['eval_zero'])) echo 'Zero is not empty.<br>'; if (isset($test['eval_null'])) echo 'NULL is set.<br>'; if (!empty($test['eval_null'])) echo 'NULL is not empty.<br>'; if (isset($test['eval_false'])) echo 'False is set.<br>'; if (!empty($test['eval_false'])) echo 'False is not empty.<br>'; if (isset($test['eval_true'])) echo 'True is set.<br>'; if (!empty($test['eval_true'])) echo 'True is not empty.<br>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 26
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 30
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 37
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
Branch analysis from position: 33
Branch analysis from position: 30
Branch analysis from position: 26
Branch analysis from position: 23
Branch analysis from position: 19
Branch analysis from position: 16
Branch analysis from position: 12
filename:       /in/pJCl9
function name:  (null)
number of ops:  38
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_zero'
          2        OP_DATA                                                  0
    5     3        ASSIGN_DIM                                               !0, 'eval_null'
          4        OP_DATA                                                  null
    6     5        ASSIGN_DIM                                               !0, 'eval_false'
          6        OP_DATA                                                  <false>
    7     7        ASSIGN_DIM                                               !0, 'eval_true'
          8        OP_DATA                                                  <true>
    9     9        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'eval_zero'
         10      > JMPZ                                                     ~6, ->12
         11    >   ECHO                                                     'Zero+is+set.%3Cbr%3E'
   10    12    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~7      !0, 'eval_zero'
         13        BOOL_NOT                                         ~8      ~7
         14      > JMPZ                                                     ~8, ->16
         15    >   ECHO                                                     'Zero+is+not+empty.%3Cbr%3E'
   12    16    >   ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'eval_null'
         17      > JMPZ                                                     ~9, ->19
         18    >   ECHO                                                     'NULL+is+set.%3Cbr%3E'
   13    19    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~10     !0, 'eval_null'
         20        BOOL_NOT                                         ~11     ~10
         21      > JMPZ                                                     ~11, ->23
         22    >   ECHO                                                     'NULL+is+not+empty.%3Cbr%3E'
   15    23    >   ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'eval_false'
         24      > JMPZ                                                     ~12, ->26
         25    >   ECHO                                                     'False+is+set.%3Cbr%3E'
   16    26    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~13     !0, 'eval_false'
         27        BOOL_NOT                                         ~14     ~13
         28      > JMPZ                                                     ~14, ->30
         29    >   ECHO                                                     'False+is+not+empty.%3Cbr%3E'
   18    30    >   ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'eval_true'
         31      > JMPZ                                                     ~15, ->33
         32    >   ECHO                                                     'True+is+set.%3Cbr%3E'
   19    33    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~16     !0, 'eval_true'
         34        BOOL_NOT                                         ~17     ~16
         35      > JMPZ                                                     ~17, ->37
         36    >   ECHO                                                     'True+is+not+empty.%3Cbr%3E'
         37    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.99 ms | 1403 KiB | 13 Q