3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh $foo = $x ==> $x + 1; $foo(12); // returns 13 $squared = array_map($x ==> $x*$x, array(1,2,3)); var_dump($squared);
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '$foo' (T_VARIABLE) in /in/Gs4Z0 on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.29
<?hh $foo = $x ==> $x + 1; $foo(12); // returns 13 $squared = array_map($x ==> $x*$x, array(1,2,3)); var_dump($squared);