That syntax is breaking 5.3 compatibility, unfortunately...  I'd change it to:

```php
$top = $targetStack->top();
$lastDepth = $top['depth'];
```

Or alternately, instead of pushing arrays onto the stack, you could push instances of `stdClass`, which would let you do:

```php
$lastDepth = $targetStack->top()->depth;
```