3v4l.org

run code in 500+ PHP versions simultaneously
<?php $numbersArr = array(3,5,17,19,24,30,38,12,15,21,67); $userInput = 35; // Filter array, return values larger than user input $filtered = array_filter($numbersArr, function ($value) use($userInput) { return $value >= $userInput; } ); If(count($filtered)>0){ Echo min($filtered); }else{ Echo "no number larger than user input"; }
Output for git.master, git.master_jit, rfc.property-hooks
38

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:
41.71 ms | 1391 KiB | 4 Q