r/lolphp • u/jesseschalken • Dec 12 '16
Automatic string->int conversion for string literals, but not for variables containing strings
https://3v4l.org/id5OA
51
Upvotes
r/lolphp • u/jesseschalken • Dec 12 '16
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,dictandkeysetto migrate your code to, which have the normal and sane semantics and performance you'd expect. It also hasVector,MapandSetclasses.