3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array ( 'itemid' => array ( 'order' => 1, 'label' => 'Itemid', 'display' => '1', 'create' => '', 'modify' => '', 'class' => '', ), 'alias' => array ( 'order' => 2, 'label' => 'Alias', 'display' => '1', 'create' => '1', 'modify' => '1', 'class' => '', ), 'telephone' => array ( 'order' => 3, 'label' => 'Téléphone', 'display' => '1', 'create' => '1', 'modify' => '1', 'class' => '', ), 'rue1' => array ( 'order' => 4, 'label' => 'Rue', 'display' => '1', 'create' => '1', 'modify' => '1', 'class' => '', ), 'rue2' => array ( 'order' => 5, 'label' => 'Complément de rue', 'display' => '1', 'create' => '1', 'modify' => '1', 'class' => '', ), 'commune_cp' => array ( 'order' => 6, 'label' => 'Code Postal', 'display' => '1', 'create' => '1', 'modify' => '1', 'class' => '', ), 'commune_nom' => array ( 'order' => 7, 'label' => 'Commune', 'display' => '1', 'create' => '1', 'modify' => '1', 'class' => '', ), 'commune' => array ( 'order' => 8, 'label' => 'Commune associée', 'display' => '1', 'create' => '1', 'modify' => '1', 'class' => '', ), 'complement_adresse' => array ( 'order' => 9, 'label' => "Complement d'adresse", 'display' => '1', 'create' => '1', 'modify' => '1', 'class' => '', ), 'clients_consommateurs' => array ( 'order' => 10, 'label' => 'Clients consommateurs', 'display' => '1', 'create' => '1', 'modify' => '1', 'class' => '', ), 'latitude' => array ( 'order' => 11, 'label' => 'Latitude', 'display' => '1', 'create' => '1', 'modify' => '1', 'class' => '', ), 'longitude' => array ( 'order' => 12, 'label' => 'Longitude', 'display' => '1', 'create' => '1', 'modify' => '1', 'class' => '', ), ); var_dump(serialize($a));
Output for 4.3.0 - 7.1.0
string(1838) "a:12:{s:6:"itemid";a:6:{s:5:"order";i:1;s:5:"label";s:6:"Itemid";s:7:"display";s:1:"1";s:6:"create";s:0:"";s:6:"modify";s:0:"";s:5:"class";s:0:"";}s:5:"alias";a:6:{s:5:"order";i:2;s:5:"label";s:5:"Alias";s:7:"display";s:1:"1";s:6:"create";s:1:"1";s:6:"modify";s:1:"1";s:5:"class";s:0:"";}s:9:"telephone";a:6:{s:5:"order";i:3;s:5:"label";s:11:"Téléphone";s:7:"display";s:1:"1";s:6:"create";s:1:"1";s:6:"modify";s:1:"1";s:5:"class";s:0:"";}s:4:"rue1";a:6:{s:5:"order";i:4;s:5:"label";s:3:"Rue";s:7:"display";s:1:"1";s:6:"create";s:1:"1";s:6:"modify";s:1:"1";s:5:"class";s:0:"";}s:4:"rue2";a:6:{s:5:"order";i:5;s:5:"label";s:18:"Complément de rue";s:7:"display";s:1:"1";s:6:"create";s:1:"1";s:6:"modify";s:1:"1";s:5:"class";s:0:"";}s:10:"commune_cp";a:6:{s:5:"order";i:6;s:5:"label";s:11:"Code Postal";s:7:"display";s:1:"1";s:6:"create";s:1:"1";s:6:"modify";s:1:"1";s:5:"class";s:0:"";}s:11:"commune_nom";a:6:{s:5:"order";i:7;s:5:"label";s:7:"Commune";s:7:"display";s:1:"1";s:6:"create";s:1:"1";s:6:"modify";s:1:"1";s:5:"class";s:0:"";}s:7:"commune";a:6:{s:5:"order";i:8;s:5:"label";s:17:"Commune associée";s:7:"display";s:1:"1";s:6:"create";s:1:"1";s:6:"modify";s:1:"1";s:5:"class";s:0:"";}s:18:"complement_adresse";a:6:{s:5:"order";i:9;s:5:"label";s:20:"Complement d'adresse";s:7:"display";s:1:"1";s:6:"create";s:1:"1";s:6:"modify";s:1:"1";s:5:"class";s:0:"";}s:21:"clients_consommateurs";a:6:{s:5:"order";i:10;s:5:"label";s:21:"Clients consommateurs";s:7:"display";s:1:"1";s:6:"create";s:1:"1";s:6:"modify";s:1:"1";s:5:"class";s:0:"";}s:8:"latitude";a:6:{s:5:"order";i:11;s:5:"label";s:8:"Latitude";s:7:"display";s:1:"1";s:6:"create";s:1:"1";s:6:"modify";s:1:"1";s:5:"class";s:0:"";}s:9:"longitude";a:6:{s:5:"order";i:12;s:5:"label";s:9:"Longitude";s:7:"display";s:1:"1";s:6:"create";s:1:"1";s:6:"modify";s:1:"1";s:5:"class";s:0:"";}}"