3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $links = array( 0 => array('productlink' => '/14/asic-company-reports', 'iconclass' => 'icon-picons-paper-2 icn'), 1 => array('productlink' => '/4/credit-and-bankruptcy', 'iconclass' => 'icon-picons-credit-card icn'), 2 => array('productlink' => '/1/business-intelligence', 'iconclass' => 'icon-picons-phone-book-2 icn'), 3 => array('productlink' => '/buy/42/apply-for-a-business-name#/step1', 'iconclass' => 'icon-picons-writing icn'), 4 => array('productlink' => '/19/asic-edge', 'iconclass' => 'icon-picons-documents-box icn'), 5 => array('productlink' => '/20/execucheck', 'iconclass' => 'icon-picons-user icn'), 6 => array('productlink' => '/buy/240/national-bankruptcy-extract', 'iconclass' => 'icon-picons-dollar icn'), 7 => array('productlink' => '/knowledgebase/4/landdata.html', 'iconclass' => 'icon-picons-location icn'), 8 => array('productlink' => '/17/policecheck', 'iconclass' => 'icon-picons-cv3 icn'), 9 => array('productlink' => '/18/PropertyReport', 'iconclass' => 'icon-picons-home-2 icn'), 10 => array('productlink' => '/3/personal-property', 'iconclass' => 'icon-picons-paper icn'), 11 => array('productlink' => '/15/vehicle-reports', 'iconclass' => 'icon-picons-car icn'), 12 => array('productlink' => '/domainchecker.php', 'iconclass' => 'icon-picons-laptop-web icn'), 13 => array('productlink' => '/5/web-services-centre', 'iconclass' => 'icon-picons-cloud-synce icn'), ); $words = array( 0 => array('productlink' => '/14/asic-company-reports', 'iconclass' => 'icon-picons-paper-2 icn'), 1 => array('productlink' => '/4/credit-and-bankruptcy', 'iconclass' => 'icon-picons-credit-card icn'), 2 => array('productlink' => '/1/business-intelligence', 'iconclass' => 'icon-picons-phone-book-2 icn'), 3 => array('productlink' => '/buy/42/apply-for-a-business-name#/step1', 'iconclass' => 'icon-picons-writing icn'), 4 => array('productlink' => '/19/asic-edge', 'iconclass' => 'icon-picons-documents-box icn'), 5 => array('productlink' => '/20/execucheck', 'iconclass' => 'icon-picons-user icn'), 6 => array('productlink' => '/buy/240/national-bankruptcy-extract', 'iconclass' => 'icon-picons-dollar icn'), 7 => array('productlink' => '/knowledgebase/4/landdata.html', 'iconclass' => 'icon-picons-location icn'), 8 => array('productlink' => '/17/policecheck', 'iconclass' => 'icon-picons-cv3 icn'), 9 => array('productlink' => '/18/PropertyReport', 'iconclass' => 'icon-picons-home-2 icn'), 10 => array('productlink' => '/3/personal-property', 'iconclass' => 'icon-picons-paper icn'), 11 => array('productlink' => '/15/vehicle-reports', 'iconclass' => 'icon-picons-car icn'), 12 => array('productlink' => '/domainchecker.php', 'iconclass' => 'icon-picons-laptop-web icn'), 13 => array('productlink' => '/5/web-services-centre', 'iconclass' => 'icon-picons-cloud-synce icn'), ); var_dump($words); // after var_dump($links); // after ?>
based on nVliS
Output for 4.3.0 - 7.1.0
array(14) { [0]=> array(2) { ["productlink"]=> string(24) "/14/asic-company-reports" ["iconclass"]=> string(23) "icon-picons-paper-2 icn" } [1]=> array(2) { ["productlink"]=> string(24) "/4/credit-and-bankruptcy" ["iconclass"]=> string(27) "icon-picons-credit-card icn" } [2]=> array(2) { ["productlink"]=> string(24) "/1/business-intelligence" ["iconclass"]=> string(28) "icon-picons-phone-book-2 icn" } [3]=> array(2) { ["productlink"]=> string(40) "/buy/42/apply-for-a-business-name#/step1" ["iconclass"]=> string(23) "icon-picons-writing icn" } [4]=> array(2) { ["productlink"]=> string(13) "/19/asic-edge" ["iconclass"]=> string(29) "icon-picons-documents-box icn" } [5]=> array(2) { ["productlink"]=> string(14) "/20/execucheck" ["iconclass"]=> string(20) "icon-picons-user icn" } [6]=> array(2) { ["productlink"]=> string(36) "/buy/240/national-bankruptcy-extract" ["iconclass"]=> string(22) "icon-picons-dollar icn" } [7]=> array(2) { ["productlink"]=> string(30) "/knowledgebase/4/landdata.html" ["iconclass"]=> string(24) "icon-picons-location icn" } [8]=> array(2) { ["productlink"]=> string(15) "/17/policecheck" ["iconclass"]=> string(19) "icon-picons-cv3 icn" } [9]=> array(2) { ["productlink"]=> string(18) "/18/PropertyReport" ["iconclass"]=> string(22) "icon-picons-home-2 icn" } [10]=> array(2) { ["productlink"]=> string(20) "/3/personal-property" ["iconclass"]=> string(21) "icon-picons-paper icn" } [11]=> array(2) { ["productlink"]=> string(19) "/15/vehicle-reports" ["iconclass"]=> string(19) "icon-picons-car icn" } [12]=> array(2) { ["productlink"]=> string(18) "/domainchecker.php" ["iconclass"]=> string(26) "icon-picons-laptop-web icn" } [13]=> array(2) { ["productlink"]=> string(22) "/5/web-services-centre" ["iconclass"]=> string(27) "icon-picons-cloud-synce icn" } } array(14) { [0]=> array(2) { ["productlink"]=> string(24) "/14/asic-company-reports" ["iconclass"]=> string(23) "icon-picons-paper-2 icn" } [1]=> array(2) { ["productlink"]=> string(24) "/4/credit-and-bankruptcy" ["iconclass"]=> string(27) "icon-picons-credit-card icn" } [2]=> array(2) { ["productlink"]=> string(24) "/1/business-intelligence" ["iconclass"]=> string(28) "icon-picons-phone-book-2 icn" } [3]=> array(2) { ["productlink"]=> string(40) "/buy/42/apply-for-a-business-name#/step1" ["iconclass"]=> string(23) "icon-picons-writing icn" } [4]=> array(2) { ["productlink"]=> string(13) "/19/asic-edge" ["iconclass"]=> string(29) "icon-picons-documents-box icn" } [5]=> array(2) { ["productlink"]=> string(14) "/20/execucheck" ["iconclass"]=> string(20) "icon-picons-user icn" } [6]=> array(2) { ["productlink"]=> string(36) "/buy/240/national-bankruptcy-extract" ["iconclass"]=> string(22) "icon-picons-dollar icn" } [7]=> array(2) { ["productlink"]=> string(30) "/knowledgebase/4/landdata.html" ["iconclass"]=> string(24) "icon-picons-location icn" } [8]=> array(2) { ["productlink"]=> string(15) "/17/policecheck" ["iconclass"]=> string(19) "icon-picons-cv3 icn" } [9]=> array(2) { ["productlink"]=> string(18) "/18/PropertyReport" ["iconclass"]=> string(22) "icon-picons-home-2 icn" } [10]=> array(2) { ["productlink"]=> string(20) "/3/personal-property" ["iconclass"]=> string(21) "icon-picons-paper icn" } [11]=> array(2) { ["productlink"]=> string(19) "/15/vehicle-reports" ["iconclass"]=> string(19) "icon-picons-car icn" } [12]=> array(2) { ["productlink"]=> string(18) "/domainchecker.php" ["iconclass"]=> string(26) "icon-picons-laptop-web icn" } [13]=> array(2) { ["productlink"]=> string(22) "/5/web-services-centre" ["iconclass"]=> string(27) "icon-picons-cloud-synce icn" } }