3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(json_decode('{"$and":[{"created":{"$gt":{"sec":1406847599,"inc":178}}},{"created":{"$lt":{"sec":1409526000,"inc":179}}},{"campaign_id":121},{"valid":true},{"quarantined":false},{"billable":true}]}'));
Output for 7.0.0 - 7.2.0
object(stdClass)#11 (1) { ["$and"]=> array(6) { [0]=> object(stdClass)#3 (1) { ["created"]=> object(stdClass)#2 (1) { ["$gt"]=> object(stdClass)#1 (2) { ["sec"]=> int(1406847599) ["inc"]=> int(178) } } } [1]=> object(stdClass)#6 (1) { ["created"]=> object(stdClass)#5 (1) { ["$lt"]=> object(stdClass)#4 (2) { ["sec"]=> int(1409526000) ["inc"]=> int(179) } } } [2]=> object(stdClass)#7 (1) { ["campaign_id"]=> int(121) } [3]=> object(stdClass)#8 (1) { ["valid"]=> bool(true) } [4]=> object(stdClass)#9 (1) { ["quarantined"]=> bool(false) } [5]=> object(stdClass)#10 (1) { ["billable"]=> bool(true) } } }
Output for 5.3.19 - 5.6.28
object(stdClass)#1 (1) { ["$and"]=> array(6) { [0]=> object(stdClass)#2 (1) { ["created"]=> object(stdClass)#3 (1) { ["$gt"]=> object(stdClass)#4 (2) { ["sec"]=> int(1406847599) ["inc"]=> int(178) } } } [1]=> object(stdClass)#5 (1) { ["created"]=> object(stdClass)#6 (1) { ["$lt"]=> object(stdClass)#7 (2) { ["sec"]=> int(1409526000) ["inc"]=> int(179) } } } [2]=> object(stdClass)#8 (1) { ["campaign_id"]=> int(121) } [3]=> object(stdClass)#9 (1) { ["valid"]=> bool(true) } [4]=> object(stdClass)#10 (1) { ["quarantined"]=> bool(false) } [5]=> object(stdClass)#11 (1) { ["billable"]=> bool(true) } } }