3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array[] = array ( 'age' => 'Lower limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => 2, 'highlight' => false ); $array[] = array ( 'age' => 'Upper limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' =>3, 'highlight' => false ); $array[] = array ( 'age' => 'Limits:', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => null, 'highlight' => 1 ); $array[] = array ( 'age' => 'Freeze limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => 1, 'highlight' => false ); $array2 = array ( 'ageing_data' => $array, ); foreach ($array2 as $row) { print_r(array_slice($row, 1)); } //print_r(array_slice($array2,1)); //print_r(array_values(array_slice($array, 1))); //print_r(implode('', array_map(function ($entry) { // return $entry['red']; //}, array_slice($a,1)))); //print_r(implode('',array_values(array_slice($a, 1))));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [age] => Upper limit [shipments] => [orders] => [ifs] => [items] => 3 [highlight] => ) [1] => Array ( [age] => Limits: [shipments] => [orders] => [ifs] => [items] => [highlight] => 1 ) [2] => Array ( [age] => Freeze limit [shipments] => [orders] => [ifs] => [items] => 1 [highlight] => ) )

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:
41.31 ms | 402 KiB | 8 Q