3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? $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 '>' in /in/XVlMX on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.29
<? $foo = $x ==> $x + 1; $foo(12); // returns 13 $squared = array_map($x ==> $x*$x, array(1,2,3)); var_dump($squared);