3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $nums = array(1,2,3,4,5,6); $even = array_reduce($nums, function($acum, $num) {if($num % 2 == 0) {$acum[] = $num}}, array());
Output for 5.3.0 - 5.4.21
Parse error: syntax error, unexpected '}' in /in/g9G9P on line 5
Process exited with code 255.