3v4l.org

run code in 300+ PHP versions simultaneously
<?php $settings = []; var_dump((array) (!empty($settings['css file']) ? $settings['css file'] : array())); $settings['css file'] = NULL; var_dump((array) (!empty($settings['css file']) ? $settings['css file'] : array())); $settings['css file'] = []; var_dump((array) (!empty($settings['css file']) ? $settings['css file'] : array())); $settings['css file'] = ['value']; var_dump((array) (!empty($settings['css file']) ? $settings['css file'] : array())); $settings['css file'] = 'string'; var_dump((array) (!empty($settings['css file']) ? $settings['css file'] : array()));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 34
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 47
Branch analysis from position: 44
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 57, Position 2 = 60
Branch analysis from position: 57
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 60
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
2 jumps found. (Code = 43) Position 1 = 57, Position 2 = 60
Branch analysis from position: 57
Branch analysis from position: 60
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 47
Branch analysis from position: 44
Branch analysis from position: 47
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 34
Branch analysis from position: 31
Branch analysis from position: 34
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
Branch analysis from position: 21
filename:       /in/cqM0B
function name:  (null)
number of ops:  65
compiled vars:  !0 = $settings
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        ISSET_ISEMPTY_DIM_OBJ                         1  ~2      !0, 'css+file'
          3        BOOL_NOT                                         ~3      ~2
          4      > JMPZ                                                     ~3, ->8
          5    >   FETCH_DIM_R                                      ~4      !0, 'css+file'
          6        QM_ASSIGN                                        ~5      ~4
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~5      <array>
          9    >   CAST                                          7  ~6      ~5
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
    5    12        ASSIGN_DIM                                               !0, 'css+file'
         13        OP_DATA                                                  null
    6    14        INIT_FCALL                                               'var_dump'
         15        ISSET_ISEMPTY_DIM_OBJ                         1  ~9      !0, 'css+file'
         16        BOOL_NOT                                         ~10     ~9
         17      > JMPZ                                                     ~10, ->21
         18    >   FETCH_DIM_R                                      ~11     !0, 'css+file'
         19        QM_ASSIGN                                        ~12     ~11
         20      > JMP                                                      ->22
         21    >   QM_ASSIGN                                        ~12     <array>
         22    >   CAST                                          7  ~13     ~12
         23        SEND_VAL                                                 ~13
         24        DO_ICALL                                                 
    8    25        ASSIGN_DIM                                               !0, 'css+file'
         26        OP_DATA                                                  <array>
    9    27        INIT_FCALL                                               'var_dump'
         28        ISSET_ISEMPTY_DIM_OBJ                         1  ~16     !0, 'css+file'
         29        BOOL_NOT                                         ~17     ~16
         30      > JMPZ                                                     ~17, ->34
         31    >   FETCH_DIM_R                                      ~18     !0, 'css+file'
         32        QM_ASSIGN                                        ~19     ~18
         33      > JMP                                                      ->35
         34    >   QM_ASSIGN                                        ~19     <array>
         35    >   CAST                                          7  ~20     ~19
         36        SEND_VAL                                                 ~20
         37        DO_ICALL                                                 
   11    38        ASSIGN_DIM                                               !0, 'css+file'
         39        OP_DATA                                                  <array>
   12    40        INIT_FCALL                                               'var_dump'
         41        ISSET_ISEMPTY_DIM_OBJ                         1  ~23     !0, 'css+file'
         42        BOOL_NOT                                         ~24     ~23
         43      > JMPZ                                                     ~24, ->47
         44    >   FETCH_DIM_R                                      ~25     !0, 'css+file'
         45        QM_ASSIGN                                        ~26     ~25
         46      > JMP                                                      ->48
         47    >   QM_ASSIGN                                        ~26     <array>
         48    >   CAST                                          7  ~27     ~26
         49        SEND_VAL                                                 ~27
         50        DO_ICALL                                                 
   14    51        ASSIGN_DIM                                               !0, 'css+file'
         52        OP_DATA                                                  'string'
   15    53        INIT_FCALL                                               'var_dump'
         54        ISSET_ISEMPTY_DIM_OBJ                         1  ~30     !0, 'css+file'
         55        BOOL_NOT                                         ~31     ~30
         56      > JMPZ                                                     ~31, ->60
         57    >   FETCH_DIM_R                                      ~32     !0, 'css+file'
         58        QM_ASSIGN                                        ~33     ~32
         59      > JMP                                                      ->61
         60    >   QM_ASSIGN                                        ~33     <array>
         61    >   CAST                                          7  ~34     ~33
         62        SEND_VAL                                                 ~34
         63        DO_ICALL                                                 
         64      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.32 ms | 1456 KiB | 14 Q