3v4l.org

run code in 300+ PHP versions simultaneously
<?php $paths = array( 20 => array( 'name' => 'Heels', 'path' => '1/2/10/15/20', ), 15 => array( 'name' => 'Sandals', 'path' => '1/2/80/96/15', ), 10 => array( 'name' => 'Trainers', 'path' => '1/2/80/96/10', ), ); arsort($paths); $breadcrumb = (object) array( 'value' => array_keys($paths)[count($paths)-1], 'labels' => implode(' > ', array_column($paths, 'name')) ); var_dump($breadcrumb);
Output for git.master, git.master_jit, rfc.property-hooks
object(stdClass)#1 (2) { ["value"]=> int(20) ["labels"]=> string(26) "Trainers > Sandals > Heels" }

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:
168.64 ms | 405 KiB | 5 Q