Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return an array with elements in reverse order
<?php array_reverse(array $array, bool $preserve_keys = false): array
<?php                     continue;

                }



                $conditions = \array_reverse($tokens[$continue]['conditions'], true);



                foreach ($conditions as $tokenPtr => $tokenCode) {
<?php             && isset($tokens[$stackPtr]['nested_parenthesis']) === true

            && $tokens[$nextNonEmpty]['code'] === \T_LIST

        ) {

            $parentheses = \array_reverse($tokens[$stackPtr]['nested_parenthesis'], true);

            foreach ($parentheses as $open => $close) {

                if (isset($tokens[$open]['parenthesis_owner'])

                    && $tokens[$tokens[$open]['parenthesis_owner']]['code'] === \T_FOREACH