Skip to content

Optimization idea: optimize str_{starts|ends}_wtih() with a 1 byte needle string to $haystack[{0|-1}] === $needle #23476

Description

@Girgias

Description

Thought about when seeing the following post: https://phpc.social/@linc/117163847782802693

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions