3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array(2, 12, 23, 34, 36, 36, 36, 56); Sort($array); $number = 30; Foreach($array as $key => $val) If($val >= $number) break; $larger = array_slice($array, $key); Echo count($larger) . "\n"; Var_dump($larger);
Output for rfc.property-hooks, git.master, git.master_jit
5 array(5) { [0]=> int(34) [1]=> int(36) [2]=> int(36) [3]=> int(36) [4]=> int(56) }

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:
96.98 ms | 1435 KiB | 4 Q