3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = "[{&quot;name&quot;:&quot;nickname&quot;,&quot;id&quot;:&quot;2010&quot;,&quot;placeHolder&quot;:&quot;&quot;,&quot;fieldType&quot;:&quot;textbox&quot;,&quot;isMandatory&quot;:&quot;1&quot;,&quot;activeMaxlengthOption&quot;:&quot;0&quot;,&quot;maxlengthLimit&quot;:&quot;0&quot;,&quot;activeMinlengthOption&quot;:&quot;0&quot;,&quot;validateLimit&quot;:&quot;&quot;,&quot;errMsgBlank&quot;:&quot;Please enter firstname.&quot;,&quot;errMsgRegx&quot;:&quot;Please enter valid firstname.&quot;,&quot;regx&quot;:&quot;^[A-Za-z']+( [A-Za-z']+)*$&quot;,&quot;validationType&quot;:&quot;alphanumeric&quot;,&quot;fieldHashTag&quot;:&quot;#nickname#&quot;},{&quot;name&quot;:&quot;overall_rating&quot;,&quot;id&quot;:&quot;2011&quot;,&quot;fieldType&quot;:&quot;rating&quot;,&quot;isMandatory&quot;:&quot;1&quot;,&quot;errMsgBlank&quot;:&quot;Please rate this product.&quot;,&quot;ratingHtmlOuterId&quot;:&quot;sa_s28_rating_outer&quot;,&quot;ratingUnit&quot;:&quot;5&quot;,&quot;jsonHoverMessage&quot;:&quot;{\&quot;1\&quot;:\&quot;Poor\&quot;,\&quot;2\&quot;:\&quot;Fair\&quot;,\&quot;3\&quot;:\&quot;Good\&quot;,\&quot;4\&quot;:\&quot;Very Good\&quot;,\&quot;5\&quot;:\&quot;Excellent\&quot;}&quot;,&quot;fieldHashTag&quot;:&quot;#overal_rating#&quot;,&quot;addNonRatingFieldToAverage&quot;:&quot;0&quot;,&quot;addToAverageRating&quot;:&quot;1&quot;},{&quot;name&quot;:&quot;comment_title&quot;,&quot;id&quot;:&quot;2012&quot;,&quot;placeHolder&quot;:&quot;&quot;,&quot;fieldType&quot;:&quot;textbox&quot;,&quot;isMandatory&quot;:&quot;1&quot;,&quot;activeMaxlengthOption&quot;:&quot;0&quot;,&quot;maxlengthLimit&quot;:&quot;0&quot;,&quot;activeMinlengthOption&quot;:&quot;0&quot;,&quot;validateLimit&quot;:&quot;&quot;,&quot;errMsgBlank&quot;:&quot;Please enter review title.&quot;,&quot;errMsgRegx&quot;:&quot;Please enter valid review title.&quot;,&quot;regx&quot;:&quot;^([A-Za-z]+ )+[A-Za-z0-9]+$|^[A-Za-z]+.&quot;,&quot;validationType&quot;:&quot;alphanumeric&quot;,&quot;fieldHashTag&quot;:&quot;#review_title#&quot;},{&quot;name&quot;:&quot;comment&quot;,&quot;id&quot;:&quot;2013&quot;,&quot;placeHolder&quot;:&quot;&quot;,&quot;fieldType&quot;:&quot;textbox&quot;,&quot;isMandatory&quot;:&quot;1&quot;,&quot;activeMaxlengthOption&quot;:&quot;0&quot;,&quot;maxlengthLimit&quot;:&quot;0&quot;,&quot;activeMinlengthOption&quot;:&quot;0&quot;,&quot;validateLimit&quot;:&quot;&quot;,&quot;errMsgBlank&quot;:&quot;Please enter review message.&quot;,&quot;errMsgRegx&quot;:&quot;&quot;,&quot;regx&quot;:&quot;&quot;,&quot;validationType&quot;:&quot;alphanumeric&quot;,&quot;fieldHashTag&quot;:&quot;#review_comment#&quot;},{&quot;name&quot;:&quot;last_name&quot;,&quot;id&quot;:&quot;2014&quot;,&quot;placeHolder&quot;:&quot;&quot;,&quot;fieldType&quot;:&quot;textbox&quot;,&quot;isMandatory&quot;:&quot;1&quot;,&quot;activeMaxlengthOption&quot;:&quot;0&quot;,&quot;maxlengthLimit&quot;:&quot;0&quot;,&quot;activeMinlengthOption&quot;:&quot;0&quot;,&quot;validateLimit&quot;:&quot;&quot;,&quot;errMsgBlank&quot;:&quot;Please enter lastname.&quot;,&quot;errMsgRegx&quot;:&quot;Please enter valid lastname.&quot;,&quot;regx&quot;:&quot;^([a-zA-Z0-9]+\\s?)*$&quot;,&quot;validationType&quot;:&quot;character&quot;,&quot;fieldHashTag&quot;:&quot;#last_name#&quot;},{&quot;name&quot;:&quot;extra_field1&quot;,&quot;id&quot;:&quot;2015&quot;,&quot;placeHolder&quot;:&quot;&quot;,&quot;fieldType&quot;:&quot;textbox&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;activeMaxlengthOption&quot;:&quot;0&quot;,&quot;maxlengthLimit&quot;:&quot;0&quot;,&quot;activeMinlengthOption&quot;:&quot;0&quot;,&quot;validateLimit&quot;:&quot;&quot;,&quot;errMsgBlank&quot;:&quot;&quot;,&quot;errMsgRegx&quot;:&quot;&quot;,&quot;regx&quot;:&quot;&quot;,&quot;validationType&quot;:&quot;numeric&quot;,&quot;fieldHashTag&quot;:&quot;#zip_code#&quot;},{&quot;name&quot;:&quot;email&quot;,&quot;id&quot;:&quot;2016&quot;,&quot;placeHolder&quot;:&quot;&quot;,&quot;fieldType&quot;:&quot;textbox&quot;,&quot;isMandatory&quot;:&quot;1&quot;,&quot;activeMaxlengthOption&quot;:&quot;0&quot;,&quot;maxlengthLimit&quot;:&quot;0&quot;,&quot;activeMinlengthOption&quot;:&quot;0&quot;,&quot;validateLimit&quot;:&quot;&quot;,&quot;errMsgBlank&quot;:&quot;Please enter email address.&quot;,&quot;errMsgRegx&quot;:&quot;Please enter valid email address.&quot;,&quot;regx&quot;:&quot;^[^\\s].[a-zA-Z0-9_.-]+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+[^\\s]$&quot;,&quot;validationType&quot;:&quot;email&quot;,&quot;fieldHashTag&quot;:&quot;#email#&quot;},{&quot;name&quot;:&quot;age&quot;,&quot;otherTableOption&quot;:&quot;0&quot;,&quot;isparentChild&quot;:&quot;0&quot;,&quot;childouterDivid&quot;:&quot;&quot;,&quot;isdisableField&quot;:&quot;0&quot;,&quot;checkboxEvent&quot;:&quot;0&quot;,&quot;id&quot;:&quot;2017&quot;,&quot;fieldType&quot;:&quot;select&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;errMsgBlank&quot;:&quot;please choose&quot;,&quot;fieldHashTag&quot;:&quot;#age#&quot;,&quot;addNonRatingFieldToAverage&quot;:&quot;0&quot;,&quot;addToAverageRating&quot;:&quot;0&quot;,&quot;optionData&quot;:[{&quot;option_id&quot;:&quot;22627&quot;,&quot;check_flag&quot;:&quot;0&quot;,&quot;site_id&quot;:&quot;8989180&quot;,&quot;template_id&quot;:&quot;187&quot;,&quot;field_id&quot;:&quot;2017&quot;,&quot;option_value&quot;:&quot;16&quot;,&quot;option_name&quot;:&quot;16&quot;,&quot;added_by&quot;:&quot;0&quot;,&quot;is_delete&quot;:&quot;0&quot;},{&quot;option_id&quot;:&quot;22628&quot;,&quot;check_flag&quot;:&quot;0&quot;,&quot;site_id&quot;:&quot;8989180&quot;,&quot;template_id&quot;:&quot;187&quot;,&quot;field_id&quot;:&quot;2017&quot;,&quot;option_value&quot;:&quot;17&quot;,&quot;option_name&quot;:&quot;17&quot;,&quot;added_by&quot;:&quot;0&quot;,&quot;is_delete&quot;:&quot;0&quot;},{&quot;option_id&quot;:&quot;22629&quot;,&quot;check_flag&quot;:&quot;0&quot;,&quot;site_id&quot;:&quot;8989180&quot;,&quot;template_id&quot;:&quot;187&quot;,&quot;field_id&quot;:&quot;2017&quot;,&quot;option_value&quot;:&quot;18&quot;,&quot;option_name&quot;:&quot;18&quot;,&quot;added_by&quot;:&quot;0&quot;,&quot;is_delete&quot;:&quot;0&quot;},{&quot;option_id&quot;:&quot;22630&quot;,&quot;check_flag&quot;:&quot;0&quot;,&quot;site_id&quot;:&quot;8989180&quot;,&quot;template_id&quot;:&quot;187&quot;,&quot;field_id&quot;:&quot;2017&quot;,&quot;option_value&quot;:&quot;19&quot;,&quot;option_name&quot;:&quot;19&quot;,&quot;added_by&quot;:&quot;0&quot;,&quot;is_delete&quot;:&quot;0&quot;},{&quot;option_id&quot;:&quot;22631&quot;,&quot;check_flag&quot;:&quot;0&quot;,&quot;site_id&quot;:&quot;8989180&quot;,&quot;template_id&quot;:&quot;187&quot;,&quot;field_id&quot;:&quot;2017&quot;,&quot;option_value&quot;:&quot;20&quot;,&quot;option_name&quot;:&quot;20&quot;,&quot;added_by&quot;:&quot;0&quot;,&quot;is_delete&quot;:&quot;0&quot;}]},{&quot;name&quot;:&quot;upload_image&quot;,&quot;id&quot;:&quot;2018&quot;,&quot;fieldType&quot;:&quot;file&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;errMsgBlank&quot;:&quot;please upload&quot;,&quot;fieldHashTag&quot;:&quot;#image#&quot;},{&quot;name&quot;:&quot;optional_rating1&quot;,&quot;id&quot;:&quot;2019&quot;,&quot;fieldType&quot;:&quot;rating&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;errMsgBlank&quot;:&quot;&quot;,&quot;ratingHtmlOuterId&quot;:&quot;sa_s28_optional_rating_outer&quot;,&quot;ratingUnit&quot;:&quot;5&quot;,&quot;jsonHoverMessage&quot;:&quot;{\&quot;1\&quot;:\&quot;Poor\&quot;,\&quot;2\&quot;:\&quot;Fair\&quot;,\&quot;3\&quot;:\&quot;Good\&quot;,\&quot;4\&quot;:\&quot;Very Good\&quot;,\&quot;5\&quot;:\&quot;Excellent\&quot;}&quot;,&quot;fieldHashTag&quot;:&quot;#quality#&quot;,&quot;addNonRatingFieldToAverage&quot;:&quot;0&quot;,&quot;addToAverageRating&quot;:&quot;1&quot;},{&quot;name&quot;:&quot;optional_rating2&quot;,&quot;id&quot;:&quot;2020&quot;,&quot;fieldType&quot;:&quot;rating&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;errMsgBlank&quot;:&quot;&quot;,&quot;ratingHtmlOuterId&quot;:&quot;sa_s28_optional_rating_outer&quot;,&quot;ratingUnit&quot;:&quot;5&quot;,&quot;jsonHoverMessage&quot;:&quot;{\&quot;1\&quot;:\&quot;Poor\&quot;,\&quot;2\&quot;:\&quot;Fair\&quot;,\&quot;3\&quot;:\&quot;Good\&quot;,\&quot;4\&quot;:\&quot;Very Good\&quot;,\&quot;5\&quot;:\&quot;Excellent\&quot;}&quot;,&quot;fieldHashTag&quot;:&quot;#comfort#&quot;,&quot;addNonRatingFieldToAverage&quot;:&quot;0&quot;,&quot;addToAverageRating&quot;:&quot;1&quot;},{&quot;name&quot;:&quot;optional_rating3&quot;,&quot;id&quot;:&quot;2021&quot;,&quot;fieldType&quot;:&quot;rating&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;errMsgBlank&quot;:&quot;&quot;,&quot;ratingHtmlOuterId&quot;:&quot;sa_s28_optional_rating_outer&quot;,&quot;ratingUnit&quot;:&quot;5&quot;,&quot;jsonHoverMessage&quot;:&quot;{\&quot;1\&quot;:\&quot;Poor\&quot;,\&quot;2\&quot;:\&quot;Fair\&quot;,\&quot;3\&quot;:\&quot;Good\&quot;,\&quot;4\&quot;:\&quot;Very Good\&quot;,\&quot;5\&quot;:\&quot;Excellent\&quot;}&quot;,&quot;fieldHashTag&quot;:&quot;#style#&quot;,&quot;addNonRatingFieldToAverage&quot;:&quot;0&quot;,&quot;addToAverageRating&quot;:&quot;0&quot;},{&quot;name&quot;:&quot;optional_rating4&quot;,&quot;id&quot;:&quot;2022&quot;,&quot;fieldType&quot;:&quot;rating&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;errMsgBlank&quot;:&quot;&quot;,&quot;ratingHtmlOuterId&quot;:&quot;sa_s28_optional_rating_outer&quot;,&quot;ratingUnit&quot;:&quot;5&quot;,&quot;jsonHoverMessage&quot;:&quot;{\&quot;1\&quot;:\&quot;Poor\&quot;,\&quot;2\&quot;:\&quot;Fair\&quot;,\&quot;3\&quot;:\&quot;Good\&quot;,\&quot;4\&quot;:\&quot;Very Good\&quot;,\&quot;5\&quot;:\&quot;Excellent\&quot;}&quot;,&quot;fieldHashTag&quot;:&quot;#size#&quot;,&quot;addNonRatingFieldToAverage&quot;:&quot;0&quot;,&quot;addToAverageRating&quot;:&quot;0&quot;},{&quot;name&quot;:&quot;product_recormmend&quot;,&quot;checkboxEvent&quot;:&quot;0&quot;,&quot;id&quot;:&quot;2023&quot;,&quot;fieldType&quot;:&quot;radio&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;errMsgBlank&quot;:&quot;&quot;,&quot;fieldHashTag&quot;:&quot;#recommend#&quot;,&quot;addNonRatingFieldToAverage&quot;:&quot;0&quot;,&quot;addToAverageRating&quot;:&quot;0&quot;,&quot;optionData&quot;:[{&quot;option_id&quot;:&quot;22649&quot;,&quot;check_flag&quot;:&quot;0&quot;,&quot;site_id&quot;:&quot;8989180&quot;,&quot;template_id&quot;:&quot;187&quot;,&quot;field_id&quot;:&quot;2023&quot;,&quot;option_value&quot;:&quot;1&quot;,&quot;option_name&quot;:&quot;yes&quot;,&quot;added_by&quot;:&quot;0&quot;,&quot;is_delete&quot;:&quot;0&quot;},{&quot;option_id&quot;:&quot;22650&quot;,&quot;check_flag&quot;:&quot;0&quot;,&quot;site_id&quot;:&quot;8989180&quot;,&quot;template_id&quot;:&quot;187&quot;,&quot;field_id&quot;:&quot;2023&quot;,&quot;option_value&quot;:&quot;0&quot;,&quot;option_name&quot;:&quot;no&quot;,&quot;added_by&quot;:&quot;0&quot;,&quot;is_delete&quot;:&quot;0&quot;}]},{&quot;name&quot;:&quot;gender&quot;,&quot;otherTableOption&quot;:&quot;0&quot;,&quot;isparentChild&quot;:&quot;0&quot;,&quot;childouterDivid&quot;:&quot;&quot;,&quot;isdisableField&quot;:&quot;0&quot;,&quot;checkboxEvent&quot;:&quot;0&quot;,&quot;id&quot;:&quot;2024&quot;,&quot;fieldType&quot;:&quot;select&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;errMsgBlank&quot;:&quot;&quot;,&quot;fieldHashTag&quot;:&quot;#gender#&quot;,&quot;addNonRatingFieldToAverage&quot;:&quot;0&quot;,&quot;addToAverageRating&quot;:&quot;0&quot;,&quot;optionData&quot;:[{&quot;option_id&quot;:&quot;22669&quot;,&quot;check_flag&quot;:&quot;0&quot;,&quot;site_id&quot;:&quot;8989180&quot;,&quot;template_id&quot;:&quot;187&quot;,&quot;field_id&quot;:&quot;2024&quot;,&quot;option_value&quot;:&quot;male&quot;,&quot;option_name&quot;:&quot;male&quot;,&quot;added_by&quot;:&quot;0&quot;,&quot;is_delete&quot;:&quot;0&quot;},{&quot;option_id&quot;:&quot;22670&quot;,&quot;check_flag&quot;:&quot;0&quot;,&quot;site_id&quot;:&quot;8989180&quot;,&quot;template_id&quot;:&quot;187&quot;,&quot;field_id&quot;:&quot;2024&quot;,&quot;option_value&quot;:&quot;female&quot;,&quot;option_name&quot;:&quot;female&quot;,&quot;added_by&quot;:&quot;0&quot;,&quot;is_delete&quot;:&quot;0&quot;}]},{&quot;name&quot;:&quot;extra_selectbox1&quot;,&quot;otherTableOption&quot;:&quot;0&quot;,&quot;isparentChild&quot;:&quot;0&quot;,&quot;childouterDivid&quot;:&quot;&quot;,&quot;isdisableField&quot;:&quot;0&quot;,&quot;checkboxEvent&quot;:&quot;0&quot;,&quot;id&quot;:&quot;2025&quot;,&quot;fieldType&quot;:&quot;select&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;errMsgBlank&quot;:&quot;&quot;,&quot;fieldHashTag&quot;:&quot;#shopper_type#&quot;,&quot;addNonRatingFieldToAverage&quot;:&quot;0&quot;,&quot;addToAverageRating&quot;:&quot;0&quot;,&quot;optionData&quot;:[{&quot;option_id&quot;:&quot;22671&quot;,&quot;check_flag&quot;:&quot;0&quot;,&quot;site_id&quot;:&quot;8989180&quot;,&quot;template_id&quot;:&quot;187&quot;,&quot;field_id&quot;:&quot;2025&quot;,&quot;option_value&quot;:&quot;1&quot;,&quot;option_name&quot;:&quot;Fashion Conscious&quot;,&quot;added_by&quot;:&quot;0&quot;,&quot;is_delete&quot;:&quot;0&quot;},{&quot;option_id&quot;:&quot;22672&quot;,&quot;check_flag&quot;:&quot;0&quot;,&quot;site_id&quot;:&quot;8989180&quot;,&quot;template_id&quot;:&quot;187&quot;,&quot;field_id&quot;:&quot;2025&quot;,&quot;option_value&quot;:&quot;2&quot;,&quot;option_name&quot;:&quot;Bargain Shopper&quot;,&quot;added_by&quot;:&quot;0&quot;,&quot;is_delete&quot;:&quot;0&quot;},{&quot;option_id&quot;:&quot;22673&quot;,&quot;check_flag&quot;:&quot;0&quot;,&quot;site_id&quot;:&quot;8989180&quot;,&quot;template_id&quot;:&quot;187&quot;,&quot;field_id&quot;:&quot;2025&quot;,&quot;option_value&quot;:&quot;3&quot;,&quot;option_name&quot;:&quot;i just need a coat to stay warm&quot;,&quot;added_by&quot;:&quot;0&quot;,&quot;is_delete&quot;:&quot;0&quot;}]},{&quot;name&quot;:&quot;extra_field2&quot;,&quot;id&quot;:&quot;2026&quot;,&quot;placeHolder&quot;:&quot;&quot;,&quot;fieldType&quot;:&quot;textbox&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;activeMaxlengthOption&quot;:&quot;0&quot;,&quot;maxlengthLimit&quot;:&quot;0&quot;,&quot;activeMinlengthOption&quot;:&quot;0&quot;,&quot;validateLimit&quot;:&quot;&quot;,&quot;errMsgBlank&quot;:&quot;&quot;,&quot;errMsgRegx&quot;:&quot;&quot;,&quot;regx&quot;:&quot;&quot;,&quot;validationType&quot;:&quot;alphanumeric&quot;,&quot;fieldHashTag&quot;:&quot;#what_oth_outerwear#&quot;},{&quot;name&quot;:&quot;extra_field3&quot;,&quot;id&quot;:&quot;2027&quot;,&quot;placeHolder&quot;:&quot;&quot;,&quot;fieldType&quot;:&quot;textbox&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;activeMaxlengthOption&quot;:&quot;0&quot;,&quot;maxlengthLimit&quot;:&quot;0&quot;,&quot;activeMinlengthOption&quot;:&quot;0&quot;,&quot;validateLimit&quot;:&quot;&quot;,&quot;errMsgBlank&quot;:&quot;&quot;,&quot;errMsgRegx&quot;:&quot;&quot;,&quot;regx&quot;:&quot;&quot;,&quot;validationType&quot;:&quot;alphanumeric&quot;,&quot;fieldHashTag&quot;:&quot;#help_us_improve#&quot;},{&quot;name&quot;:&quot;about_us&quot;,&quot;id&quot;:&quot;2028&quot;,&quot;placeHolder&quot;:&quot;&quot;,&quot;fieldType&quot;:&quot;textbox&quot;,&quot;isMandatory&quot;:&quot;0&quot;,&quot;activeMaxlengthOption&quot;:&quot;0&quot;,&quot;maxlengthLimit&quot;:&quot;0&quot;,&quot;activeMinlengthOption&quot;:&quot;0&quot;,&quot;validateLimit&quot;:&quot;&quot;,&quot;errMsgBlank&quot;:&quot;&quot;,&quot;errMsgRegx&quot;:&quot;&quot;,&quot;regx&quot;:&quot;&quot;,&quot;validationType&quot;:&quot;alphanumeric&quot;,&quot;fieldHashTag&quot;:&quot;#share_story#&quot;}]"; echo html_entities_decode($var);
based on qVfKK
Output for 7.0.0 - 7.3.0rc3
Fatal error: Uncaught Error: Call to undefined function html_entities_decode() in /in/OeAKt:5 Stack trace: #0 {main} thrown in /in/OeAKt on line 5
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Call to undefined function html_entities_decode() in /in/OeAKt:5 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function html_entities_decode() in /in/OeAKt on line 5
Process exited with code 255.