3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { $code = "1+1+++"; $res = eval("return ($code);"); } catch (ParseError $e) { // throw $e; } echo $res;
based on D7Mor
Output for 7.0.0 - 7.3.0rc3
Notice: Undefined variable: res in /in/hPZQr on line 10
Output for hhvm-3.15.4
Fatal error: syntax error, unexpected T_INC in /in/hPZQr(5)(cc875b63c3ea7c52f1b5bb0ad6c7e571) : eval()'d code on line 1
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '++' (T_INC) in /in/hPZQr(5) : eval()'d code on line 1