3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?hh // strict $f = $x ==> $y ==> $z ==> $x + $y + $z; //no workies: echo $f(1)(2)(3); echo (($f(1))(2))(3);
based on q6D8M
Output for 5.4.34 - 5.4.35
Parse error: syntax error, unexpected '$f' (T_VARIABLE) in /in/befMN on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.32
<?hh // strict $f = $x ==> $y ==> $z ==> $x + $y + $z; //no workies: echo $f(1)(2)(3); echo (($f(1))(2))(3);