3v4l.org

run code in 300+ PHP versions simultaneously
<?php //29783 Innistrad Champion of the Parish 2.75 3.17 0 2.22 5 2.54 6 function _AVG($args){ /*$count = func_num_args(); $args = func_get_args();*/ $count = count($args); $sum = array_sum($args); return bcdiv($sum,$count,2); } $avg = _AVG(array(3.17,2.22,2.54)); echo 'AVG: '. $avg."\n"; $addmtg = bcadd($avg,3.17,2); echo 'addmtg: '.$addmtg."\n"; $mul95 = bcmul($addmtg,0.95,2); echo 'mul95: '.$mul95."\n"; $div2 = bcdiv($mul95,2,2); echo 'div2: '.$div2;
Output for git.master, git.master_jit, rfc.property-hooks
AVG: 2.64 addmtg: 5.81 mul95: 5.51 div2: 2.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:
32.91 ms | 401 KiB | 8 Q