3v4l.org

run code in 200+ php & hhvm versions
<?php $body = '{"Limit":10,"Offset":0,"TotalResults":5,"Locale":"en_US","Results":[{"Id":"28433319","CID":"33b04fb8-f2dd-5554-8ede-e0d6389827b0","SourceClient":"examplecompany","LastModeratedTime":"2019-05-20T13:55:17.000+00:00","LastModificationTime":"2019-05-20T13:55:22.000+00:00","ProductId":"ID-6","UserLocation":"Naperville, IL","AuthorId":"data-gen-user-sx802futv8j51h8plp91ngei8","ContentLocale":"en_US","IsFeatured":false,"TotalClientResponseCount":0,"TotalCommentCount":0,"Rating":5,"IsRatingsOnly":false,"IsRecommended":true,"Helpfulness":0.0,"TotalFeedbackCount":2,"TotalNegativeFeedbackCount":2,"TotalPositiveFeedbackCount":0,"ModerationStatus":"APPROVED","SubmissionTime":"2019-02-19T22:58:00.000+00:00","ReviewText":"Integer at purus ut magna sagittis consequat et atquam.Pellentesque fermentum lorem eget ante euismod et pulvinar nequeinterdum.Suspendisse dolor sem, vulputate vitae laoreet eu, auctor idtortor.\n\nIn malesuada adipiscing enim, at porttitor dolor venenatisac.\n\nIn hac habitasse plateadictumst.Pellentesque gravida luctus augue atmollis.In quis risus magna, nec blanditrisus.","Title":"Integer tincidunt viverraelementum.","UserNickname":"philostrate415","Photos":[],"IsSyndicated":false,"SecondaryRatings":{},"ClientResponses":[],"TagDimensions":{},"BadgesOrder":[],"Pros":null,"SubmissionId":null,"AdditionalFields":{},"Cons":null,"CampaignId":null,"TagDimensionsOrder":[],"AdditionalFieldsOrder":[],"RatingRange":5,"ContextDataValuesOrder":[],"CommentIds":[],"ContextDataValues":{},"Videos":[],"SecondaryRatingsOrder":[],"Badges":{},"ProductRecommendationIds":[]},{"Id":"28433320","CID":"6c099665-7050-5e27-840f-b84f01607d08","SourceClient":"examplecompany","LastModeratedTime":"2019-05-20T13:55:17.000+00:00","LastModificationTime":"2019-05-20T13:55:17.000+00:00","ProductId":"ID-6","UserLocation":"Plano, TX","AuthorId":"data-gen-user-sr4kofymjqpojtyervi7ngnix","ContentLocale":"en_US","IsFeatured":false,"TotalClientResponseCount":0,"TotalCommentCount":0,"Rating":5,"IsRatingsOnly":false,"TotalFeedbackCount":0,"TotalNegativeFeedbackCount":0,"TotalPositiveFeedbackCount":0,"ModerationStatus":"APPROVED","SubmissionTime":"2018-10-24T03:20:00.000+00:00","ReviewText":"Donec sagittis placerat magna nonaliquet.Pellentesque suscipit sollicitudin magna, sed fermentum ante vestibulumac.Maecenas quis nibh at arcu volutpat pharetra quis nontortor.Vestibulum arcu magna, pellentesque non pellentesque sit amet, varius nonmetus.Phasellus sit amet quam lectus, ac sagittiserat.\n\nQuisque nec velit sit amet arcu mattislaoreet.Curabitur facilisis venenatis est asollicitudin.Donec tempor, est ut placerat congue, ipsum sem iaculis ante, quis commodo mi turpis velturpis.\n\nCurabitur sit amet orcilorem.Praesent eleifend porta turpis dapibusultricies.Maecenas tincidunt lorem vitae magna auctorcondimentum.\n\nDonec interdum erat eu arcu vehiculagravida.Quisque cursus pulvinar ligula, sed accumsan felis interdumid.Nullam erat augue, condimentum et fermentum vitae, dapibus sedurna.Etiam sapien dolor, consequat nec tincidunt et, interdum euquam.Curabitur pulvinar nulla ut mauris varius in aliquam ligulasemper.","Title":"Curabitur sit amet orcilorem.","UserNickname":"panthino372","Photos":[],"IsSyndicated":false,"SecondaryRatings":{},"ClientResponses":[],"TagDimensions":{},"BadgesOrder":[],"Pros":null,"SubmissionId":null,"AdditionalFields":{},"Cons":null,"CampaignId":null,"Helpfulness":null,"TagDimensionsOrder":[],"AdditionalFieldsOrder":[],"RatingRange":5,"ContextDataValuesOrder":[],"CommentIds":[],"ContextDataValues":{},"Videos":[],"SecondaryRatingsOrder":[],"Badges":{},"IsRecommended":null,"ProductRecommendationIds":[]},{"Id":"28433317","CID":"5bbdb0d7-a43e-5ed4-b8f6-69fe67d5f069","SourceClient":"examplecompany","LastModeratedTime":"2019-05-20T13:55:17.000+00:00","LastModificationTime":"2019-05-20T13:55:21.000+00:00","ProductId":"ID-6","UserLocation":"Rialto, CA","AuthorId":"data-gen-user-sr4kofymjqpojtyervi7ngnix","ContentLocale":"en_US","IsFeatured":false,"TotalClientResponseCount":0,"TotalCommentCount":0,"Rating":5,"SecondaryRatingsOrder":["Quality","Value"],"IsRatingsOnly":false,"IsRecommended":true,"Helpfulness":0.75,"TotalFeedbackCount":4,"TotalNegativeFeedbackCount":1,"TotalPositiveFeedbackCount":3,"ModerationStatus":"APPROVED","SubmissionTime":"2018-08-02T12:27:00.000+00:00","ReviewText":"Morbi bibendum nibh quis elit cursus eu mattis doloraliquet.Nulla sed nibh est, in conguemassa.Aenean sit amet lacusmagna.","Title":"Maecenas malesuada malesuada dolor etcongue.","UserNickname":"panthino372","SecondaryRatings":{"Quality":{"Value":5,"Id":"Quality","ValueRange":5,"ValueLabel":null,"MinLabel":null,"Label":null,"DisplayType":"NORMAL","MaxLabel":null},"Value":{"Value":4,"Id":"Value","ValueRange":5,"ValueLabel":null,"MinLabel":null,"Label":null,"DisplayType":"NORMAL","MaxLabel":null}},"Photos":[],"IsSyndicated":false,"ClientResponses":[],"TagDimensions":{},"BadgesOrder":[],"Pros":null,"SubmissionId":null,"AdditionalFields":{},"Cons":null,"CampaignId":null,"TagDimensionsOrder":[],"AdditionalFieldsOrder":[],"RatingRange":5,"ContextDataValuesOrder":[],"CommentIds":[],"ContextDataValues":{},"Videos":[],"Badges":{},"ProductRecommendationIds":[]},{"Id":"28433318","CID":"8d30f7f2-5607-5783-add3-b5f3a0e4eac1","SourceClient":"examplecompany","LastModeratedTime":"2019-05-20T13:55:17.000+00:00","LastModificationTime":"2019-05-20T13:55:21.000+00:00","ProductId":"ID-6","UserLocation":"Springfield, MO","AuthorId":"data-gen-user-sx802futv8j51h8plp91ngei8","ContentLocale":"en_US","IsFeatured":false,"TotalClientResponseCount":0,"TotalCommentCount":0,"Rating":4,"SecondaryRatingsOrder":["Quality","Value"],"IsRatingsOnly":false,"IsRecommended":true,"Helpfulness":0.375,"TotalFeedbackCount":8,"TotalNegativeFeedbackCount":5,"TotalPositiveFeedbackCount":3,"ModerationStatus":"APPROVED","SubmissionTime":"2019-04-06T03:32:00.000+00:00","ReviewText":"Cras gravida accumsan eros, imperdiet mollis magna commodosed.Donec vehicula velitdolor.Maecenas malesuada malesuada dolor etcongue.Donec id purusrisus.Sed quis lectus in erat viverra lobortis nec utsapien.\n\nPraesent at rutrumipsum.","Title":"Aliquam varius pulvinar tellus sit ametpulvinar.","UserNickname":"philostrate415","SecondaryRatings":{"Quality":{"Value":4,"Id":"Quality","ValueRange":5,"ValueLabel":null,"MinLabel":null,"Label":null,"DisplayType":"NORMAL","MaxLabel":null},"Value":{"Value":5,"Id":"Value","ValueRange":5,"ValueLabel":null,"MinLabel":null,"Label":null,"DisplayType":"NORMAL","MaxLabel":null}},"Photos":[],"IsSyndicated":false,"ClientResponses":[],"TagDimensions":{},"BadgesOrder":[],"Pros":null,"SubmissionId":null,"AdditionalFields":{},"Cons":null,"CampaignId":null,"TagDimensionsOrder":[],"AdditionalFieldsOrder":[],"RatingRange":5,"ContextDataValuesOrder":[],"CommentIds":[],"ContextDataValues":{},"Videos":[],"Badges":{},"ProductRecommendationIds":[]},{"Id":"28433321","CID":"5e6b3909-109b-51ad-8aa4-d049bb947d01","SourceClient":"examplecompany","LastModeratedTime":"2019-05-20T13:55:17.000+00:00","LastModificationTime":"2019-05-20T13:55:22.000+00:00","ProductId":"ID-6","ClientResponses":[{"Department":"Integer urna dui, varius ut interdum non,","Response":"Integer urna dui, varius ut interdum non, placerat vitaemauris. Proin tincidunt orci ac lacus faucibus condimentum mattis felisconsectetur.\n\nNunc congue semper lectus euporttitor. Aliquam pellentesque nunc at neque facilisisbibendum.","ResponseType":"Nunc lorem neque, condimentum id fermentum a, aliquam sit ametligula. Sed ull","ResponseSource":"Etiam ac volutpatmi.","Name":"Ut dictum imperdiet augue,","Date":"2019-05-20T13:55:16.000+00:00"}],"UserLocation":"Santa Clara, CA","AuthorId":"data-gen-user-q4qtgyz105ot1iplvmmvhwwnr","ContentLocale":"en_US","IsFeatured":false,"TotalClientResponseCount":1,"TotalCommentCount":0,"Rating":4,"SecondaryRatingsOrder":["Quality","Value"],"IsRatingsOnly":false,"IsRecommended":true,"Helpfulness":0.5714290142059326,"TotalFeedbackCount":7,"TotalNegativeFeedbackCount":3,"TotalPositiveFeedbackCount":4,"ModerationStatus":"APPROVED","SubmissionTime":"2018-09-20T15:57:00.000+00:00","ReviewText":"Caum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculusmus.Nunc iaculis porta dolor, et aliquam urna hendreritvel.Duis ut nibh ut mi tincidunt ornare nec necneque.","Title":"Sed posuere molestie diam etvehicula.","UserNickname":"pompey896","SecondaryRatings":{"Quality":{"Value":4,"Id":"Quality","ValueRange":5,"ValueLabel":null,"MinLabel":null,"Label":null,"DisplayType":"NORMAL","MaxLabel":null},"Value":{"Value":4,"Id":"Value","ValueRange":5,"ValueLabel":null,"MinLabel":null,"Label":null,"DisplayType":"NORMAL","MaxLabel":null}},"Photos":[],"IsSyndicated":false,"TagDimensions":{},"BadgesOrder":[],"Pros":null,"SubmissionId":null,"AdditionalFields":{},"Cons":null,"CampaignId":null,"TagDimensionsOrder":[],"AdditionalFieldsOrder":[],"RatingRange":5,"ContextDataValuesOrder":[],"CommentIds":[],"ContextDataValues":{},"Videos":[],"Badges":{},"ProductRecommendationIds":[]}],"Includes":{},"HasErrors":false,"Errors":[]}'; $data = json_decode( $body,true ); foreach($data['Results'] as $result) { }
Output for 7.1.25 - 7.3.5