3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array( "text"=>"1,1,1,1,1,1,3,4,4,4,2,2,4,3,5,5,5,5,5,5,5,5,2,4,3,3,2,3,3,3,4,3,3,3,3,3,3,3,3,4,1,4,1,1,4,2,2,2,2,3" ); $data = array_chunk(explode(',', $arr['text']), 10); foreach($data as $datum) { echo array_sum($datum) / count($datum), "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
2.1 4.1 3.3 3.2 2.2

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:
22.68 ms | 1115 KiB | 4 Q