3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ ["2011-11-18 00:00:00" => 'C'], ["2011-11-18 00:00:00" => 'I'], ["2011-11-18 00:00:00" => 'S'], ], [ ["2011-11-22 00:00:00" => 'C'], ["2011-11-22 00:00:00" => 'S'] ] ]; var_export( array_merge( ...array_map( fn($set) => [key($set[0]) => count($set, COUNT_RECURSIVE) - count($set)], $array ) ) );
Output for git.master_jit, git.master
array ( '2011-11-18 00:00:00' => 3, '2011-11-22 00:00:00' => 2, )

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