3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('b' => NULL); var_dump(isset($a['b']), empty($a['b'])); $b = new ArrayObject($a); var_dump(isset($b['b']), empty($a['b']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/30a8T
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b
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                         0  ~3      !0, 'b'
          3        SEND_VAL                                                 ~3
          4        ISSET_ISEMPTY_DIM_OBJ                         1  ~4      !0, 'b'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
    5     7        NEW                                              $6      'ArrayObject'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $6
    6    11        INIT_FCALL                                               'var_dump'
         12        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      !1, 'b'
         13        SEND_VAL                                                 ~9
         14        ISSET_ISEMPTY_DIM_OBJ                         1  ~10     !0, 'b'
         15        SEND_VAL                                                 ~10
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.83 ms | 1394 KiB | 15 Q