3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [0.5278533158407, 0.4080014506744, 0.5086879008467, 0.3950042642736, 1], [1, 0.52873390443395, 0.52518076782133, 0.52983621494599, 0.54392829322042, 0.53636363636364] ]; foreach($array as &$arr){ rsort($arr); $start = $arr[0] == 1 ? 1 : 0; $arr = array_slice($arr,$start,3); } var_export($array);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => 0.5278533158407, 1 => 0.5086879008467, 2 => 0.4080014506744, ), 1 => array ( 0 => 0.54392829322042, 1 => 0.53636363636364, 2 => 0.52983621494599, ), )

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:
127.47 ms | 406 KiB | 5 Q