3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonStr = '{"previewFlag":"0","postedData":{"0":{"hashTag":"#rating#","fieldValue":"5","fieldName":"overall_rating","fieldId":"2927","fieldType":"rating"},"1":{"hashTag":"#revtitle#","fieldValue":"Nice Product SA test","fieldName":"comment_title","fieldId":"2928","fieldType":"textbox"},"2":{"hashTag":"#revmsg#","fieldValue":"Amyris is a thick, pale yellow essential oil steam distilled from the wood of a tree native to Haiti and other tropical climates. Because of its very high oil content, native peoples burned it as a torch to light their path through darkness; so another name for it is Torchwood. Amyris is also sometimes called West Indian Sandalwood; however, its properties are different and it\'s \"not\" % $ botanically related to true Sandalwood oil.","fieldName":"comment","fieldId":"2929","fieldType":"text"},"3":{"hashTag":"#nname#","fieldValue":"Dwayne","fieldName":"nickname","fieldId":"2930","fieldType":"textbox"},"4":{"hashTag":"#email#","fieldValue":"sa.dwaynejohnson@gmail.com","fieldName":"email","fieldId":"2931","fieldType":"textbox"},"5":{"hashTag":"#image#","fieldValue":{"images":{},"videos":{}},"fieldName":"upload_image","fieldId":"2932","fieldType":"file"},"6":{"hashTag":"#proeffective#","fieldValue":"1","fieldName":"extra_field1","fieldId":"2933","fieldType":"radio"},"7":{"hashTag":"#overallquality#","fieldValue":"1","fieldName":"extra_selectbox4","fieldId":"2936","fieldType":"radio"},"8":{"hashTag":"#aromadescribepdf#","fieldValue":"1","fieldName":"extra_selectbox5","fieldId":"2937","fieldType":"radio"},"9":{"hashTag":"#recommend#","fieldValue":"1","fieldName":"product_recormmend","fieldId":"2938","fieldType":"radio"}},"config":{"siteId":"9857771","templateId":"263","currentPageUrl":"https://www.planttherapy.com/amyris-essential-oil","smartyFlag":true,"debug":false,"activateBeforeReviewApprovalMail":true,"activateGDPR":true,"image":{"fileLimit":2,"enablePreview":1,"isMultiple":0}},"product":{"productId":"P680912023030","productName":"Amyris Essential Oil","productDesc":"","productImageUrl":"https://www.planttherapy.com/mm5/graphics/00000001/10ml-EO-amyris-front_3_200x200.jpg","productUrl":"https://www.planttherapy.com/amyris-essential-oil"},"user":{"firstName":0,"lastName":0,"email":0},"reviewType":"0","gdpr":{"gdprStatus":"1","gdprEmail":"sa.dwaynejohnson@gmail.com"}}'; $jsonStr = addslashes($jsonStr); $jsonArr = json_decode($jsonStr, true); echo json_last_error_msg();
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Syntax error

preferences:
169.77 ms | 403 KiB | 188 Q