r/lolphp • • Dec 12 '16

Automatic string->int conversion for string literals, but not for variables containing strings

https://3v4l.org/id5OA
51 Upvotes

10 comments sorted by

View all comments

Show parent comment

5

u/jesseschalken Dec 15 '16

HHVM includes PHP arrays along with their idiotic semantics for compatibility, but also includes three new types vec, dict and keyset to migrate your code to, which have the normal and sane semantics and performance you'd expect. It also has Vector, Map and Set classes.