7. Binary number format
• $a = 1234; // decimal number
• $a = -123; // a negative number
• $a = 0123; // octal number
(equivalent to 83 decimal)
• $a = 0x1A; // hexadecimal number
(equivalent to 26 decimal)
• $a = 0b11111111; // binary number
(equivalent to 255 decimal)
9. Class member access on
instantiation
• do_something(new Foo);
• do_something((new Foo)->bar());
10. The little things
•
•
•
•
•
•
JSON Serialization Helper
Native Session Handler Interface
Objects as Functions
Callable Type-Hint
$this in Anonymous Functions
Initialized High Precision Timer
11. JSON Serialization Helper
• class A implements sonSerializable
• public function jsonSerialize()
• echo json_encode (new A());