3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 0 => (object) [ "User_id" => "1", "date" => "2076-02-06", "checkedin" => "12:11:40", "checkedout" => "19:11:43", "difference" => "7.00083333", ], 1 => (object) [ "User_id" => "1", "date" => "2076-02-08", "checkedin" => "12:15:40", "checkedout" => "15:15:48", "difference" => "3.00222222", ], ]; $temp = array_sum(array_column($arr, 'difference')); echo $temp;
Output for git.master, git.master_jit, rfc.property-hooks
10.00305555

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