only test depth argument in php >= 5.5