3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php$data = array('foo', '', 'bar'); array_walk_recursive($data, function (&$value, $key) { if ($value === '') { $value = null; } }); print_r ($data);
Output for 5.3.0 - 5.4.32
<?php$data = array('foo', '', 'bar'); array_walk_recursive($data, function (&$value, $key) { if ($value === '') { $value = null; } }); print_r ($data);