3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = '{"body_properties":{"background":"","background_color":"#52c942","background_position":"","background_repeat":"","background_image":"","font":"","font_style":"","font_weight":"","font_size":"","font_family":"","color":"#595459"},"link_properties":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","color":"primary_8","color_on_hover":"primary_1","color_on_focus":"primary_1","color_on_active":"primary_1","border_color_parent":"primary_1"},"textboxes":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","border":"","border_width":"","border_style":"","border_color":"","border_radius":"","padding":"","padding_top":"","padding_right":"","padding_bottom":"","padding_left":"","margin":"","margin_top":"","margin_right":"","margin_bottom":"","margin_left":"","color":"","height":"","line_height":"","border_color_on_focus":"primary_1"},"textarea":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","border":"","border_width":"","border_style":"","border_color":"","border_radius":"","padding":"","padding_top":"","padding_right":"","padding_bottom":"","padding_left":"","margin":"","margin_top":"","margin_right":"","margin_bottom":"","margin_left":"","color":"#065e61","height":"","line_height":"","border_color_on_focus":"#15d196"},"dropdown":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","border":"","border_width":"","border_style":"","border_color":"","border_radius":"","padding":"","padding_top":"","padding_right":"","padding_bottom":"","padding_left":"","margin":"","margin_top":"","margin_right":"","margin_bottom":"","margin_left":"","color":"","height":"","line_height":"","dropdown_picker_width":"20px","dropdown_picker_margin":"2px","dropdown_deselect_margin":"24px","border_color_on_focus":"primary_1","dropdown_items_background":"primary_2","color_on_hover":""},"multi_select_dropdown":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","border":"","border_width":"","border_style":"","border_color":"","border_radius":"","padding":"","padding_top":"","padding_right":"","padding_bottom":"","padding_left":"","margin":"","margin_top":"","margin_right":"","margin_bottom":"","margin_left":"","color":"","items_background":"primary_1","border_color_on_focus":"primary_1"},"checkboxes":{"checkbox_type":"default","size":"","color":"#756e75","color_on_active":"#3b5f63"},"radio_buttons":{"radio_type":"custom","size":"","color":"primary_5","color_on_active":"primary_1"},"file_upload":{"font":"","font_style":"italic","font_weight":"bold","font_size":"18px","font_family":"Arial","border":"","border_width":"2px","border_style":"dotted","border_color":"#80f29f","border_radius":"10px","background":"","background_color":"primary_1","background_position":"","background_repeat":"","background_image":"","padding":"","padding_top":"","padding_right":"10px","padding_bottom":"15px","padding_left":"20px","margin":"","margin_top":"20px","margin_right":"15px","margin_bottom":"10px","margin_left":"","color":"#ffffff","background_color_on_hover":"#facdfa","border_color_on_hover":"#ffffff","color_on_hover":"primary_1"},"button":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","background":"","background_color":"primary_7","background_position":"","background_repeat":"","background_image":"","border":"","border_width":"","border_style":"","border_color":"primary_5","border_radius":"","padding":"","padding_top":"","padding_right":"","padding_bottom":"","padding_left":"","margin":"","margin_top":"","margin_right":"","margin_bottom":"","margin_left":"","color":"","height":"","line_height":"","background_color_on_hover":"primary_5","border_color_on_hover":"primary_5","color_on_hover":""},"button_green_success":{"background_color_parent":"#7ba86d","border_color_parent":"#7ba86d","color":"#ffffff","background_color_on_hover":"#ffffff","border_color_on_hover":"#7ba86d","color_on_hover":"#7ba86d"},"button_danger_red":{"background_color_parent":"primary_7","border_color_parent":"#d9534f","color":"","background_color_on_hover":"#d9534f","border_color_on_hover":"#d9534f","color_on_hover":""},"button_primary_info_blue":{"background_color_parent":"primary_1","border_color_parent":"primary_1","color":"","background_color_on_hover":"#ffffff","border_color_on_hover":"primary_1","color_on_hover":"primary_1"},"button_yellow":{"background_color_parent":"#ffffff","border_color_parent":"#e637e6","color":"","background_color_on_hover":"","border_color_on_hover":"","color_on_hover":""},"button_purple":{"background_color_parent":"","border_color_parent":"","color":"","background_color_on_hover":"","border_color_on_hover":"","color_on_hover":""},"button_black":{"background_color_parent":"#4a4a4a","border_color_parent":"#e06d1b","color":"","background_color_on_hover":"#ff6eff","border_color_on_hover":"","color_on_hover":""},"grid_button":{"padding":"","padding_top":"","padding_right":"","padding_bottom":"","padding_left":"","margin":"","margin_top":"","margin_right":"","margin_bottom":"","margin_left":"","color":"#797979","height":"","line_height":""},"grid_add_new_button":{"background_color_parent":"primary_7","border_color_parent":"#797979","color":"#797979","background_color_on_hover":"#797979","border_color_on_hover":"#797979","color_on_hover":"#edf2f8"},"grid_delete_button":{"background_color_parent":"primary_7","border_color_parent":"#d9534f","color":"#d9534f","background_color_on_hover":"#d9534f","border_color_on_hover":"#d9534f","color_on_hover":"#edf2f8"},"grid_status_button":{"background_color_parent":"primary_7","border_color_parent":"#6eb5a5","color":"#6eb5a5","background_color_on_hover":"#6eb5a5","border_color_on_hover":"#6eb5a5","color_on_hover":"#679ee0"},"grid_search_button":{"background_color_parent":"primary_7","border_color_parent":"#e06d1b","color":"#e06d1b","background_color_on_hover":"#e06d1b","border_color_on_hover":"#e06d1b","color_on_hover":"#edf2f8"},"grid_refresh_button":{"background_color_parent":"primary_7","border_color_parent":"#15bd06","color":"#15bd06","background_color_on_hover":"#15bd06","border_color_on_hover":"#0f7506","color_on_hover":"#edf2f8"},"grid_columns_button":{"background_color_parent":"primary_7","border_color_parent":"#e83fa1","color":"#e83fa1","background_color_on_hover":"#e83fa1","border_color_on_hover":"#e83fa1","color_on_hover":"#edf2f8"},"grid_export_button":{"background_color_parent":"primary_7","border_color_parent":"#2e5bf0","color":"#2e5bf0","background_color_on_hover":"#2e5bf0","border_color_on_hover":"#2e5bf0","color_on_hover":"#edf2f8"},"top_panel":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","background":"","background_color":"primary_1","background_position":"","background_repeat":"","background_image":"","color":""},"bottom_panel":{"font":"","font_style":"","font_weight":"","font_size":"14px","font_family":"","background":"","background_color":"","background_position":"","background_repeat":"","background_image":"","color":"#800580"},"container_strip":{"font":"","font_style":"","font_weight":"","font_size":"16px","font_family":"courier new","background":"","background_color":"#21b871","background_position":"","background_repeat":"","background_image":"","color":"primary_1"},"left_navigation_bar_parent":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"Segoe UI, Arial","background":"","background_color":"primary_1","background_position":"","background_repeat":"","background_image":"","border":"1px","border_width":"1px","border_style":"solid","border_color":"#ffffff","color":"#ffffff","height":"40px","line_height":"40px","background_color_on_hover":"primary_3","border_color_on_hover":"","color_on_hover":"#ffffff","background_color_on_active":"#0f41ab","border_color_on_active":"primary_7","color_on_active":"#ffffff"},"left_navigation_bar_children":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","background":"","background_color":"","background_position":"","background_repeat":"","background_image":"","border":"","border_width":"","border_style":"","border_color":"#7b8c74","margin_left_parent":"","color":"","height":"","line_height":"","background_color_on_hover":"primary_3","border_color_on_hover":"primary_3","color_on_hover":"#ffffff","background_color_on_active":"#805080","border_color_on_active":"primary_1","color_on_active":"#48ff00"},"top_navigation_bar_parent":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"Segoe UI, Arial","background":"","background_color":"primary_1","background_position":"","background_repeat":"","background_image":"","border":"","border_width":"1px","border_style":"solid","border_color":"primary_4","color":"#ffffff","background_color_on_hover":"primary_2","border_color_on_hover":"primary_4","color_on_hover":"#ffffff","background_color_on_active":"primary_1","border_color_on_active":"primary_4","color_on_active":"#ffffff"},"top_navigation_bar_chidren":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","background":"","background_color":"","background_position":"","background_repeat":"","background_image":"","border":"","border_width":"","border_style":"","border_color":"primary_2","items_border_color":"","color":"","background_color_on_hover":"primary_3","border_color_on_hover":"primary_3","color_on_hover":"#ffffff","background_color_on_active":"#805080","border_color_on_active":"primary_1","color_on_active":"#7e9973"},"sitemap_header":{"font":"","font_style":"italic","font_weight":"bold","font_size":"12px","font_family":"Helvetica","background":"","background_color":"#7a7a7a","background_position":"0px 0px","background_repeat":"repeat","background_image":"url(http:\/\/latenightfood.in\/images\/templatemo_sidebar_header.jpg)","border":"","border_width":"","border_style":"","border_color":"","border_radius":"","color":"#edf2f8","height":"","line_height":""},"sitemap_body":{"font":"","font_style":"oblique","font_weight":"bolder","font_size":"11px","font_family":"","background":"","background_color":"#c7c7c7","background_position":"","background_repeat":"","background_image":"url(..\/..\/..\/..\/public\/images\/left-bg-new.png) !important","padding":"","padding_top":"2px","padding_right":"10px","padding_bottom":"7px","padding_left":"3px","margin":"","margin_top":"10px","margin_right":"15px","margin_bottom":"10px","margin_left":"20px","color":"#009416","color_on_hover":"#fc58fc"},"dashboard_header":{"font":"","font_style":"italic","font_weight":"bolder","font_size":"18px","font_family":"courier new","background":"","background_color":"#7a7a7a","background_position":"","background_repeat":"","background_image":"url(http:\/\/risadesign.com\/images\/bkg_images\/risadesign_BKG_02.jpg)","border":"","border_width":"","border_style":"","border_color":"","border_radius":"10px 10px 0px 0px","color":"#8a008a","height":"50px","line_height":"40px"},"grid_table_settings":{"font":"","font_style":"","font_weight":"normal","font_size":"","font_family":"","background":"","background_color":"primary_8","background_position":"","background_repeat":"","background_image":"","border":"","border_width":"1px","border_style":"dashed","border_color":"#adb6b6","border_radius":"8px","color":"primary_1"},"grid_table_header":{"font":"","font_style":"italic","font_weight":"","font_size":"","font_family":"","background":"","background_color":"#de7ede","background_position":"","background_repeat":"","background_image":"url(..\/..\/..\/..\/public\/images\/patterns\/2.png) !important","border":"","border_width":"","border_style":"","border_color":"","padding":"","padding_top":"","padding_right":"","padding_bottom":"","padding_left":"","color":"#1f181f"},"grid_table_body":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","background":"","background_color":"primary_3","background_position":"","background_repeat":"","background_image":"","border":"","border_width":"","border_style":"","border_color":"","padding":"","padding_top":"","padding_right":"","padding_bottom":"","padding_left":"","color":"primary_2","even_row_background_color":"#d8d5a8","odd_row_background_color":"#b4c991","background_color_on_hover":"#a9be99","background_color_on_active":"#81c2af","color_on_hover":"","color_on_active":""},"grid_table_search_toolbar":{"background":"","background_color":"","background_position":"","background_repeat":"","background_image":""},"grid_paging_settings":{"font":"","font_style":"normal","font_weight":"bold","font_size":"12px","font_family":"monospace","background":"","background_color":"primary_7","background_position":"","background_repeat":"","background_image":"url(..\/..\/..\/..\/public\/images\/patterns\/pg1.png)","border":"","border_width":"","border_style":"","border_color":"#505250","border_radius":"","color":"#1422b8","height":"","line_height":"","background_color_on_hover":"#0d090d","border_color_on_hover":"","color_on_hover":"#59ff72"},"form_properties":{"border":"","border_top":"","border_bottom":"","border_width":"1px","border_style":"solid","border_color":"#8a3f8a","border_radius":"12px 5px"},"form_header_and_footer":{"font":"","font_style":"italic","font_weight":"normal","font_size":"15px","font_family":"monospace","background":"","background_color":"#f2c7f2","background_position":"","background_repeat":"","background_image":"url(..\/..\/..\/..\/public\/images\/patterns\/2.png)","border":"","border_width":"1px","border_style":"solid","border_color":"#1e6e1e","border_radius":"","border_top_left_radius":"","border_top_right_radius":"","border_bottom_left_radius":"","border_bottom_right_radius":""},"form_tabs":{"background":"","background_color":"#ffd4ff","background_position":"15px 5px","background_repeat":"","background_image":"url(..\/..\/..\/..\/public\/images\/patterns\/2.png)","border":"","border_width":"0px 0px 1px 0px","border_style":"solid","border_color":"#ff8000","border_radius":"5px","color":"#0922de","background_color_on_hover":"#575757","color_on_hover":"#4deb8a","background_color_on_active":"primary_4","border_top_color_on_active":"#f01a7e","border_bottom_color_on_active":"#1baee3","color_on_active":"#25992c"},"general_success_messages":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","background":"","background_color":"","background_position":"","background_repeat":"","background_image":"","border":"","border_width":"","border_style":"","border_color":"","border_radius":"","color":""},"general_error_messages":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","background":"","background_color":"","background_position":"","background_repeat":"","background_image":"","border":"","border_width":"","border_style":"","border_color":"","border_radius":"","color":""},"validation_success_messages":{"border_color_parent":""},"validation_error_messages":{"font":"","font_style":"","font_weight":"","font_size":"","font_family":"","border_color_parent":"","color":"#f23ff2"},"settings_and_log_icons":{"background":"","background_color":"#7199f0","background_position":"","background_repeat":"","background_image":"","border":"","border_width":"2px","border_style":"solid","border_color":"#7a007a","border_radius":"7px 7px 0px 0px","color":"#6bff93","background_color_on_hover":"#6bff93","border_color_on_hover":"","color_on_hover":"#7199f0"},"left_menu_collapse_icon":{"background_color_parent":"primary_5","border_color_parent":"primary_5","color":""},"date_and_time_pickers":{"background_color_parent":"primary_3","border_color_parent":"","background_color_on_hover":"","border_color_on_hover":"","background_color_on_active":"primary_1","border_color_on_active":"primary_1"}}'; echo json_decode($str);
Output for 7.1.0
Recoverable fatal error: Object of class stdClass could not be converted to string in /in/2vJBu on line 3
Process exited with code 255.
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
Catchable fatal error: Object of class stdClass could not be converted to string in /in/2vJBu on line 3
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/2vJBu on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/2vJBu on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/2vJBu on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/2vJBu on line 3