3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $search = '20.00'; $arr = [ '0', '20' => '0-20', '50' => '20-50', '100' => '50-100', '200' => '100-200', '500' => '200-500' ]; foreach($arr as $k=>$v){ if($k >= $search){ echo "$v\n"; return; } } ?>
based on s19CD

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
0-20
Output for Array change keys
0-20
Output for Lexical anon
0-20

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