3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml_object['executeCustomReportResponse']['reportDetail']['header']['columnName'] = array("Apple","Banana", "Carrot"); $xml_object['executeCustomReportResponse']['reportDetail']['header']['columnName']['RandomFlag'] =True; echo("\nData Type: ".gettype ( $xml_object )); echo("\n"); foreach($xml_object['executeCustomReportResponse']['reportDetail']['header']['columnName'] as $value){ echo($value." "); } $get_column_name = $xml_object['executeCustomReportResponse']['reportDetail']['header']['columnName']; echo("\nData Type of copy ".gettype( $get_column_name )); echo("\n"); foreach($get_column_name as $value){ echo($value." "); } echo("\n"."************"."\n"); function getGroupNames($xml_response){ global $ajax_data; $index_of_title_column = -1; $index_of_group_type_column = -1; $columns_array = (array)$xml_response['executeCustomReportResponse']['reportDetail']['header']['columnName']; $index_of_title_column = array_search("Apple", $columns_array); $index_of_group_type_column = array_search("Carrot", $columns_array); echo($index_of_title_column."\n"); echo($index_of_group_type_column."\n"); } getGroupNames($xml_object) ?>
Output for git.master, git.master_jit, rfc.property-hooks
Data Type: array Apple Banana Carrot 1 Data Type of copy array Apple Banana Carrot 1 ************ 0 2

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
29.59 ms | 401 KiB | 8 Q