3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $calc = function ($arg = null, $acc = '') use (&$calc) { return $arg === null ? $acc : function ($arg = null, $saved = '') use (&$calc, $acc) { return $calc($arg, $arg . $acc . $saved); }; }; $result = $calc(1)(3)(3)(8)(); var_dump($result);
based on HjRLC
Output for hhvm-3.15.4, 7.0.0 - 7.2.6
string(3) "833"
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '(' in /in/sctIN on line 9
Process exited with code 255.