3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = '{ senrows: [ { no: "1", type: "Door Contact", zone: "1", name: "zone1", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "2", type: "Door Contact", zone: "2", name: "zone2", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "3", type: "Door Contact", zone: "3", name: "zone3", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "4", type: "Door Contact", zone: "4", name: "zone4", attr: "Burglar", cond: "", battery: "Low", tamp: "", bypass: "No" }, { no: "5", type: "Door Contact", zone: "5", name: "zone5", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "6", type: "Door Contact", zone: "6", name: "zone6", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "7", type: "Door Contact", zone: "7", name: "zone7", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "8", type: "Door Contact", zone: "8", name: "zone8", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "9", type: "Door Contact", zone: "9", name: "zone9", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "10", type: "IR Sensor", zone: "10", name: "zone10", attr: "Burglar", cond: "", battery: "Low", tamp: "", bypass: "No" }, { no: "11", type: "Remote Keypad", zone: "11", name: "zone11", attr: "", cond: "", battery: "", tamp: "", bypass: "No" } ] }' ; echo $str;
based on 1s1jN
Output for 5.6.0 - 7.3.0alpha1
{ senrows: [ { no: "1", type: "Door Contact", zone: "1", name: "zone1", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "2", type: "Door Contact", zone: "2", name: "zone2", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "3", type: "Door Contact", zone: "3", name: "zone3", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "4", type: "Door Contact", zone: "4", name: "zone4", attr: "Burglar", cond: "", battery: "Low", tamp: "", bypass: "No" }, { no: "5", type: "Door Contact", zone: "5", name: "zone5", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "6", type: "Door Contact", zone: "6", name: "zone6", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "7", type: "Door Contact", zone: "7", name: "zone7", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "8", type: "Door Contact", zone: "8", name: "zone8", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "9", type: "Door Contact", zone: "9", name: "zone9", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "10", type: "IR Sensor", zone: "10", name: "zone10", attr: "Burglar", cond: "", battery: "Low", tamp: "", bypass: "No" }, { no: "11", type: "Remote Keypad", zone: "11", name: "zone11", attr: "", cond: "", battery: "", tamp: "", bypass: "No" } ] }