3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataPerson = array( 'dn' => array('day' => 13, 'month' => 01, 'year' => 1974); ); $checkNoEmptyRecursive = function($val) { $empty = true; array_walk_recursive($val, function($item, $key) use (& $empty) { $empty = $empty && empty($item); }); return $empty; }; var_dump( $checkNoEmptyRecursive($dataPerson) );
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.31
Parse error: syntax error, unexpected ';', expecting ')' in /in/1Ogtt on line 3
Process exited with code 255.

preferences:
205 ms | 1395 KiB | 68 Q