3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $decurrying = function ($arg = null, $acc = '') use (&$decurrying) { return $arg === null ? $acc : function ($arg = null, $acc = '') use (&$decurrying, $acc) { return $decurrying($arg, $acc . $arg); }; }; $result = $decurrying(1)(3)(3)(8)(); var_dump($result);
based on eTUa2
Output for 7.1.0 - 7.1.6
Fatal error: Cannot use lexical variable $acc as a parameter name in /in/UDEnA on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.20
string(3) "338"
Output for hhvm-3.15.4
string(0) ""
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '(' in /in/UDEnA on line 9
Process exited with code 255.