3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $matrix = array( '2014-06-07' => array( '2014-06-21' => 21.7, '2014-06-22' => 14.7, '2014-06-23' => 121.7, ), '2014-06-08' => array( '2014-06-21' => 7.7, '2014-06-22' => 14.7, '2014-06-23' => 17.7, ), '2014-06-09' => array( '2014-06-21' => 14.7, '2014-06-22' => 42.7, '2014-06-23' => 114.7, ), ); echo '<pre>'; print_r($matrix);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<pre>Array ( [2014-06-07] => Array ( [2014-06-21] => 21.7 [2014-06-22] => 14.7 [2014-06-23] => 121.7 ) [2014-06-08] => Array ( [2014-06-21] => 7.7 [2014-06-22] => 14.7 [2014-06-23] => 17.7 ) [2014-06-09] => Array ( [2014-06-21] => 14.7 [2014-06-22] => 42.7 [2014-06-23] => 114.7 ) )