3v4l.org

run code in 300+ PHP versions simultaneously
vars.php <?php $i = 10; $t = 20; global $e = 0; echo "I: $i\n"; echo "T: $t\n"; echo "E: $e\n"; addition(); echo "E: $e\n"; function addition($i, $t) { $e = $i+$t; } ?>
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.20
Parse error: syntax error, unexpected '=', expecting ',' or ';' in /in/cpZJX on line 5
Process exited with code 255.

preferences:
186.49 ms | 1399 KiB | 57 Q