3v4l.org

run code in 300+ PHP versions simultaneously
<?php $textdata = "2016/11/2 23:49:34,1,2,3,5 <---Array 0 2016/11/2 23:49:35,2,2,3,9 <---Array 1 2016/11/2 23:49:36,0,2,3,5 <---Array 2 2016/11/2 23:49:37,0,5,3,5 <---Array 3 2016/11/2 23:49:38,0,2,3,5 <---Array 4 2016/11/2 23:49:39,1,2,3,5 <---Array 5 2016/11/2 23:49:40,2,2,3,5 <---Array 6 2016/11/2 23:49:41,3,2,3,5 <---Array 7 2016/11/2 23:49:42,4,2,3,5 <---Array 8 2016/11/2 23:49:43,5,2,7,5 <---Array 9 2016/11/2 23:49:44,0,2,3,5 <---Array 10 2016/11/2 23:49:45,0,2,3,5 <---Array 11 2016/11/2 23:49:46,0,3,5,7 <---Array 12"; preg_match_all("/\:\d{2},(\d)/", $textdata, $arr); $sum = $arr[1][1]+ $arr[1][9]; echo $sum; //var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
7

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