3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nums = array(7, 13, 2, 8, 54, 1); print "<p>" . find($nums) . "</p>"; function find($array) { if(!is_array($array)) return FALSE; $val = $array[0]; foreach($array as $nums) { if($nums > $val) { $val = $num; } } return $val; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $num in /in/gUgAf on line 17 Warning: Undefined variable $num in /in/gUgAf on line 17 Warning: Undefined variable $num in /in/gUgAf on line 17 Warning: Undefined variable $num in /in/gUgAf on line 17 Warning: Undefined variable $num in /in/gUgAf on line 17 <p></p>

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:
36.41 ms | 402 KiB | 8 Q