3v4l.org

run code in 300+ PHP versions simultaneously
<?php function poisson($mu,$shift) { #returns array of poisson probabilities for scores $x = []; for ($i = 1 ; $i <= $shift ; $i++ ) { array_push($x,0.0); } $pcdf = 0.0; $a = exp(-1*$mu); while ( $pcdf < 0.999999 || count($x) < 5 ) { array_push($x,$a*($mu**(count($x)-$shift))/facdef(count($x)-$shift)); $pcdf+=end($x); } return $x; } echo poisson(1,0); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function facdef() in /in/dtfKm:11 Stack trace: #0 /in/dtfKm(17): poisson(1, 0) #1 {main} thrown in /in/dtfKm on line 11
Process exited with code 255.

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