3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo 'var: '; var_dump(empty($a['foo']['bar'])); echo "\n\nexpr: "; var_dump(empty($a['foo']['bar'] > 0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Icfer
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                         'var%3A+'
    4     1        INIT_FCALL                                                   'var_dump'
          2        FETCH_DIM_IS                                         ~1      !0, 'foo'
          3        ISSET_ISEMPTY_DIM_OBJ                             1  ~2      ~1, 'bar'
          4        SEND_VAL                                                     ~2
          5        DO_ICALL                                                     
    5     6        ECHO                                                         '%0A%0Aexpr%3A+'
    6     7        INIT_FCALL                                                   'var_dump'
          8        FETCH_DIM_R                                          ~4      !0, 'foo'
          9        FETCH_DIM_R                                          ~5      ~4, 'bar'
         10        IS_SMALLER                                           ~6      0, ~5
         11        BOOL_NOT                                             ~7      ~6
         12        SEND_VAL                                                     ~7
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.17 ms | 2139 KiB | 14 Q