3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array_map(intval, array(1, '2', '3fd', 'fds4', '', '-6', 07)); var_dump($a);
Output for 7.2.0
Warning: Use of undefined constant intval - assumed 'intval' (this will throw an Error in a future version of PHP) in /in/5eN70 on line 3 array(7) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(0) [4]=> int(0) [5]=> int(-6) [6]=> int(7) }
Output for 5.3.20 - 7.1.10
Notice: Use of undefined constant intval - assumed 'intval' in /in/5eN70 on line 3 array(7) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(0) [4]=> int(0) [5]=> int(-6) [6]=> int(7) }