3v4l.org

run code in 300+ PHP versions simultaneously
<?php $times = array( 3375110404, 1374660925, 1374482694, 1374242337, 1373793867, 1373632889, 1373187141, 1373021668, 1372754021, 1372599890, ); var_dump(array_average_diff($times)); function array_average_diff(array $array) { $diff = 0; for($i = 1; $i < count($array); $i++){ $diff += abs($array[$i] - $array[$i - 1]); } return $diff/count($array); }
Output for git.master, git.master_jit, rfc.property-hooks
float(200251051.4)

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:
45.68 ms | 401 KiB | 8 Q