3v4l.org

run code in 200+ 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.3.29, 5.4.28 - 5.4.32
<?php$data = array('foo', '', 'bar'); array_walk_recursive($data, function (&$value, $key) { if ($value === '') { $value = null; } }); print_r ($data);
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '$data' (T_VARIABLE) in /in/eV2aP on line 1
Process exited with code 255.