3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array('10' => 'a', '20' => 'b', '30' => 'c', '40' => 'd', '50' => 'e'); $keys = array_keys($data); $max = 38; $belowMax = array_filter( $keys, function($num) use ($max) { return $num < $max; } ); $highest = max($belowMax); echo '<pre>'. print_r($highest, 1). '</pre>';
Output for git.master, git.master_jit, rfc.property-hooks
<pre>30</pre>

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:
54.53 ms | 1452 KiB | 4 Q