3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_map('intval', array('foo' => '234', 'bar' => '2345', '1a', 'b2')));
based on QaW1n
Output for 5.3.18 - 7.3.0rc4
array(4) { ["foo"]=> int(234) ["bar"]=> int(2345) [0]=> int(1) [1]=> int(0) }