3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> </head> <body> <?php /* $avg=array (43, 24, 56, 76); $count=count($avg, COUNT_NORMAL); Print $count; */ function findAvg($val1,$val2,$val3,$val4){ $avg=array ($val1,$val2,$val3,$val4); $count=count($avg, COUNT_NORMAL); $average=array_sum($avg)/$count; print $average; } findAvg(43, 24, 56, 76); //findAvg($_POST[avg]); //echo $avg{2};
Output for git.master, git.master_jit, rfc.property-hooks
<html> <head> </head> <body> 49.75

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