3v4l.org

run code in 300+ PHP versions simultaneously
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.3.27, 5.4.0 - 5.4.20
Parse error: syntax error, unexpected '=', expecting ',' or ';' in /in/aItjK on line 15
Process exited with code 255.

preferences:
183.7 ms | 1395 KiB | 56 Q