3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
vars.php <?php $i = 10; $t = 20; $e = 0; echo "I: $i\n"; echo "T: $t\n"; echo "E: $e\n"; $e = addition($i,$t); echo "E: $e\n"; function addition($i, $t) { global $e = 0; $e = $i+$t; return $e; } ?>
Output for 5.3.0 - 5.4.20
Parse error: syntax error, unexpected '=', expecting ',' or ';' in /in/aItjK on line 15
Process exited with code 255.