3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $header = array( 'Image', array('data' => 'SKU', 'field' => 'sku'), array('data' => 'Status', 'field' => 'status'), array('data' => 'Online Date', 'field' => 'publishedDate'), array('data' => 'Stock', 'field' => 'articleStock'), array('data' => 'Order Count', 'field' => 'orderCount'), array('data' => 'Cancelation Count', 'field' => 'cancelCount'), array('data' => 'Shipments - Returns', 'field' => 'performCount'), array('data' => 'Shipment Count', 'field' => 'shipmentCount'), array('data' => 'Retoure Count', 'field' => 'retoureCount'), array('data' => 'Retoure Quote', 'field' => 'retoureQuote'), ); var_dump($header);
Output for 4.3.0 - 7.2.0
array(11) { [0]=> string(5) "Image" [1]=> array(2) { ["data"]=> string(3) "SKU" ["field"]=> string(3) "sku" } [2]=> array(2) { ["data"]=> string(6) "Status" ["field"]=> string(6) "status" } [3]=> array(2) { ["data"]=> string(11) "Online Date" ["field"]=> string(13) "publishedDate" } [4]=> array(2) { ["data"]=> string(5) "Stock" ["field"]=> string(12) "articleStock" } [5]=> array(2) { ["data"]=> string(11) "Order Count" ["field"]=> string(10) "orderCount" } [6]=> array(2) { ["data"]=> string(17) "Cancelation Count" ["field"]=> string(11) "cancelCount" } [7]=> array(2) { ["data"]=> string(19) "Shipments - Returns" ["field"]=> string(12) "performCount" } [8]=> array(2) { ["data"]=> string(14) "Shipment Count" ["field"]=> string(13) "shipmentCount" } [9]=> array(2) { ["data"]=> string(13) "Retoure Count" ["field"]=> string(12) "retoureCount" } [10]=> array(2) { ["data"]=> string(13) "Retoure Quote" ["field"]=> string(12) "retoureQuote" } }