As we know, creating anonymous objects in JavaScript is easy, like the code below:
var object = { p : \"value\", p1 : [ \"john\", \"johnny\" ] };
$obj = (object) ['myProp' => 'myVal'];