3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_filter([1, 2, 3], function(int $i) { return $i % 2 !== 0; }));
Output for hhvm-3.15.4, 7.0.0 - 7.3.0rc3
array(2) { [0]=> int(1) [2]=> int(3) }
Output for 5.6.0 - 5.6.30
Catchable fatal error: Argument 1 passed to {closure}() must be an instance of int, integer given in /in/TVMen on line 3
Process exited with code 255.