3v4l.org

run code in 300+ PHP versions simultaneously
<?php $punchInTimes = array( '2013-08-01 09:00', '2013-08-02 09:06', '2013-08-03 08:50', '2013-08-04 09:20', '2013-08-05 09:01', '2013-08-06 08:56', ); echo date('H:i', array_sum(array_map(function($v) { $time = date("H:i", strtotime($v)); return strtotime($time); }, $punchInTimes)) / count($punchInTimes));
Output for git.master, git.master_jit, rfc.property-hooks
09:02

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:
162.38 ms | 405 KiB | 5 Q