3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array ( 0 => array ( 'values' => array ( 1 => '123456', 2 => 'Blue', 3 => 'Container', 4 => '03-01-2020', // start date 5 => '03-01-2021', // exp date 6 => '', 7 => '', ), ), 1 => array ( 'values' => array ( 1 => '21312', 2 => 'Green', 3 => 'Box', 4 => '2019-04-12', // start date 5 => '', //exp date 6 => '', 7 => '', ), ), 2 => array ( 'values' => array ( 1 => '434324', 2 => 'Orange', 3 => 'Box', 4 => '2018-04-28', // start date 5 => '2019-04-23', // exp date 6 => '', 7 => '', ), ), ); $expiryDates = array_map(static function ($entry) { return strtotime($entry['values'][5]); }, $input); echo date('d F Y', max($expiryDates));
Output for git.master, git.master_jit, rfc.property-hooks
03 January 2021

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
73.42 ms | 405 KiB | 5 Q