3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mass = array( array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), array( 'type' => 'presse', 'title' => 'Presse 1 lorem ipsium titre document presse', 'date' => 1487628154, 'link' => 'http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf', ), ); var_dump($massss = array_slice($mass,0, 6));
Output for 7.1.2
array(6) { [0]=> array(4) { ["type"]=> string(6) "presse" ["title"]=> string(43) "Presse 1 lorem ipsium titre document presse" ["date"]=> int(1487628154) ["link"]=> string(78) "http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf" } [1]=> array(4) { ["type"]=> string(6) "presse" ["title"]=> string(43) "Presse 1 lorem ipsium titre document presse" ["date"]=> int(1487628154) ["link"]=> string(78) "http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf" } [2]=> array(4) { ["type"]=> string(6) "presse" ["title"]=> string(43) "Presse 1 lorem ipsium titre document presse" ["date"]=> int(1487628154) ["link"]=> string(78) "http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf" } [3]=> array(4) { ["type"]=> string(6) "presse" ["title"]=> string(43) "Presse 1 lorem ipsium titre document presse" ["date"]=> int(1487628154) ["link"]=> string(78) "http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf" } [4]=> array(4) { ["type"]=> string(6) "presse" ["title"]=> string(43) "Presse 1 lorem ipsium titre document presse" ["date"]=> int(1487628154) ["link"]=> string(78) "http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf" } [5]=> array(4) { ["type"]=> string(6) "presse" ["title"]=> string(43) "Presse 1 lorem ipsium titre document presse" ["date"]=> int(1487628154) ["link"]=> string(78) "http://phitrust.server.iquadart.by/wp-content/uploads/2017/02/pdfurl-guide.pdf" } }