3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'naam' => '0', 'anaam' => 0, 'vnaam' => 'hellow ); function is_zero($var) { echo ' executeing --_'; return (($var != '0')); } print_r(array_filter($data, 'is_zero'));
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected 'executeing' (T_STRING), expecting ')' in /in/Z1ALU on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/Z1ALU on line 10
Process exited with code 255.

preferences:
177.57 ms | 1395 KiB | 47 Q