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; $index_of_group_type_column; $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) ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0130.00316.63
8.3.60.0000.01618.43
8.3.50.0150.00721.99
8.3.40.0140.00418.80
8.3.30.0140.00019.07
8.3.20.0000.00720.21
8.3.10.0070.00023.51
8.3.00.0000.00822.40
8.2.190.0110.01116.88
8.2.180.0110.00418.29
8.2.170.0070.01322.96
8.2.160.0070.01022.19
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00017.74
8.2.110.0060.00322.25
8.2.100.0040.00819.20
8.2.90.0050.00317.88
8.2.80.0050.00317.97
8.2.70.0040.00418.05
8.2.60.0040.00418.05
8.2.50.0000.00818.10
8.2.40.0040.00420.46
8.2.30.0030.00518.18
8.2.20.0030.00517.85
8.2.10.0030.00518.20
8.2.00.0000.00818.11
8.1.280.0110.00425.92
8.1.270.0030.00620.38
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0040.00422.20
8.1.230.0070.00419.02
8.1.220.0080.00017.89
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.00
8.1.180.0030.00718.10
8.1.170.0060.00318.64
8.1.160.0030.00523.80
8.1.150.0030.00618.84
8.1.140.0030.00517.41
8.1.130.0070.00017.57
8.1.120.0070.00017.53
8.1.110.0030.00317.38
8.1.100.0000.00717.43
8.1.90.0000.00717.35
8.1.80.0040.00417.44
8.1.70.0030.00317.36
8.1.60.0030.00517.54
8.1.50.0090.00017.42
8.1.40.0040.00417.36
8.1.30.0070.00017.64
8.1.20.0070.00017.60
8.1.10.0070.00017.51
8.1.00.0060.00317.44
8.0.300.0070.00019.83
8.0.290.0050.00316.63
8.0.280.0000.00718.43
8.0.270.0000.00717.25
8.0.260.0040.00417.26
8.0.250.0030.00316.93
8.0.240.0070.00016.86
8.0.230.0000.00717.05
8.0.220.0070.00016.97
8.0.210.0050.00216.91
8.0.200.0060.00017.08
8.0.190.0070.00416.88
8.0.180.0040.00417.04
8.0.170.0000.00817.01
8.0.160.0030.00416.92
8.0.150.0000.00716.91
8.0.140.0070.00016.92
8.0.130.0040.00413.41
8.0.120.0030.00616.93
8.0.110.0000.01016.95
8.0.100.0000.00816.83
8.0.90.0050.00317.07
8.0.80.0090.01316.84
8.0.70.0040.00416.98
8.0.60.0000.00717.00
8.0.50.0000.00716.96
8.0.30.0030.01217.15
8.0.20.0090.00917.40
8.0.10.0030.00617.15
8.0.00.0080.01016.73
7.4.330.0020.00215.08
7.4.320.0060.00016.61
7.4.300.0000.00616.49
7.4.290.0000.00716.48
7.4.280.0060.00616.48
7.4.270.0030.00316.53
7.4.260.0070.00016.50
7.4.250.0030.00516.57
7.4.240.0000.00716.47
7.4.230.0030.00316.63
7.4.220.0070.01116.61
7.4.210.0040.01116.64
7.4.200.0080.00016.32
7.4.160.0110.00516.61
7.4.150.0120.00617.40
7.4.140.0080.01417.86
7.4.130.0060.01116.56
7.4.120.0080.01316.60
7.4.110.0130.00316.61
7.4.100.0090.00916.65
7.4.90.0060.01216.58
7.4.80.0060.01219.39
7.4.70.0070.01416.37
7.4.60.0050.01116.70
7.4.50.0000.00816.57
7.4.40.0080.00816.51
7.4.30.0160.00716.30
7.4.00.0000.01215.12
7.3.330.0050.00013.50
7.3.320.0000.00613.39
7.3.310.0030.00516.44
7.3.300.0040.00416.40
7.3.290.0070.00916.43
7.3.280.0090.01116.47
7.3.270.0160.00017.40
7.3.260.0180.00616.50
7.3.250.0090.01016.38
7.3.240.0030.01316.32
7.3.230.0140.01116.52
7.3.210.0130.00616.55
7.3.200.0100.00616.44
7.3.190.0070.01116.46
7.3.180.0140.00716.67
7.3.170.0060.00916.45
7.3.160.0100.01016.44
7.2.330.0090.01216.71
7.2.320.0120.01216.82
7.2.310.0100.00616.79
7.2.300.0110.00716.79
7.2.290.0060.01716.50
7.2.00.0070.00718.66
7.1.200.0080.00315.88
7.1.100.0220.01317.85
7.1.70.0040.00416.89
7.1.60.0070.01619.23
7.1.50.0100.01416.94
7.1.00.0130.06722.28
7.0.200.0030.01016.52
7.0.60.0100.08320.11
7.0.50.0000.05018.00
7.0.40.0000.04720.11
7.0.30.0530.07720.25
7.0.20.0100.06020.07
7.0.10.0030.06720.20
7.0.00.0200.07320.24
5.6.280.0000.06321.04
5.6.210.0000.07320.61
5.6.200.0000.04318.29
5.6.190.0130.04720.48
5.6.180.3170.03720.52
5.6.170.0300.08320.47
5.6.160.0030.07720.50
5.6.150.0130.07718.26
5.6.140.0030.08018.27
5.6.130.0070.07718.18
5.6.120.0070.03720.90
5.6.110.0070.07021.00
5.6.100.0070.08320.98
5.6.90.0070.06721.11
5.6.80.0230.07020.38
5.6.70.0230.03320.35
5.5.350.0330.07720.38
5.5.340.0030.07018.01
5.5.330.0100.07320.13
5.5.320.0330.04320.32
5.5.310.0200.03720.36
5.5.300.0070.08317.92
5.5.290.0070.08717.95
5.5.280.0070.08320.89
5.5.270.0070.08320.73
5.5.260.0070.07320.80
5.5.250.0070.03720.69
5.5.240.0270.07320.36
5.4.450.0970.05319.54
5.4.440.1030.07019.61
5.4.430.0900.06319.16
5.4.420.0770.05719.15
5.4.410.0870.05319.32
5.4.400.0830.05019.16
5.4.390.0870.06719.15
5.4.380.0830.05019.06
5.4.370.0800.05319.15
5.4.360.0830.05319.22
5.4.350.0970.05318.87
5.4.340.0670.05718.99
5.4.320.0730.06018.98
5.4.310.0930.04319.11
5.4.300.0670.05018.87
5.4.290.0800.05719.13
5.4.280.0630.06018.86
5.4.270.0900.05019.06
5.4.260.0900.04318.98
5.4.250.0730.04319.14
5.4.240.0870.05019.00
5.4.230.0800.05318.98
5.4.220.0830.05019.00
5.4.210.0770.05319.32
5.4.200.0870.04316.78
5.4.190.0900.04719.03
5.4.180.0970.04319.00
5.4.170.0800.05719.14
5.4.160.0670.05019.34
5.4.150.0670.05018.92
5.4.140.0700.06016.50
5.4.130.0700.04316.54
5.4.120.0730.04016.31
5.4.110.0700.06016.56
5.4.100.0530.06016.34
5.4.90.0670.05016.54
5.4.80.0670.04716.43
5.4.70.0770.04016.41
5.4.60.0700.04016.30
5.4.50.0670.05716.70
5.4.40.0800.05016.50
5.4.30.0770.05316.37
5.4.20.0770.05716.27
5.4.10.0730.05716.69
5.4.00.0900.04715.89
5.3.290.0730.04714.59
5.3.280.0630.05714.52
5.3.270.0630.05314.53
5.3.260.0630.05714.63
5.3.250.0700.05014.69
5.3.240.0630.05314.75
5.3.230.0700.04714.46
5.3.220.0670.05014.54
5.3.210.0630.05314.48
5.3.200.0670.04714.54
5.3.190.0670.05714.62
5.3.180.0730.05014.48
5.3.170.0630.05014.54
5.3.160.0700.04714.62
5.3.150.0630.05714.62
5.3.140.0600.05714.56
5.3.130.0670.05014.55
5.3.120.0600.05714.60
5.3.110.0670.06314.55
5.3.100.0730.04713.95
5.3.90.0770.04314.07
5.3.80.0730.06313.93
5.3.70.0630.05713.88
5.3.60.0700.04714.02
5.3.50.0630.05013.96
5.3.40.0700.05313.96
5.3.30.0870.05313.84
5.3.20.0630.05013.78
5.3.10.0830.04713.71
5.3.00.0730.04013.64
5.2.170.0600.04311.05
5.2.160.0530.04011.16
5.2.150.0470.04711.16
5.2.140.0470.04711.29
5.2.130.0530.04011.02
5.2.120.0600.03711.11
5.2.110.0430.04711.02
5.2.100.0500.04311.13
5.2.90.0600.03311.11
5.2.80.0570.04311.25
5.2.70.0670.04011.17
5.2.60.0770.03310.98
5.2.50.0630.04711.17
5.2.40.0700.04311.22
5.2.30.0400.04310.89
5.2.20.0630.04310.93
5.2.10.0370.04310.87
5.2.00.0370.04710.95
5.1.60.0430.0339.98
5.1.50.0430.0339.94
5.1.40.0300.0439.90
5.1.30.0470.03010.39
5.1.20.0400.04010.58
5.1.10.0500.03010.15
5.1.00.0570.04310.02
5.0.50.0330.0378.39
5.0.40.0330.0438.40
5.0.30.0300.0408.22
5.0.20.0200.0278.26
5.0.10.0170.0308.16
5.0.00.0170.0578.06
4.4.90.0270.0175.81
4.4.80.0230.0205.86
4.4.70.0200.0235.86
4.4.60.0170.0235.82
4.4.50.0330.0235.78
4.4.40.0230.0335.86
4.4.30.0270.0235.91
4.4.20.0230.0275.91
4.4.10.0230.0205.85
4.4.00.0170.0375.82
4.3.110.0270.0205.80
4.3.100.0230.0305.89
4.3.90.0270.0205.72
4.3.80.0200.0335.73
4.3.70.0230.0175.72
4.3.60.0200.0205.69
4.3.50.0170.0275.75
4.3.40.0230.0305.73
4.3.30.0070.0234.44
4.3.20.0100.0274.44
4.3.10.0070.0274.47
4.3.00.0130.0236.85

preferences:
56.48 ms | 401 KiB | 5 Q