3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
vars.php <?php $i = 10; $t = 20; $e = 0; echo "I: $i"; echo "T: $t"; echo "E: $e"; addition(); echo "E: $e"; function addition() { $e = $i+$t; } ?>
Output for 5.0.4 - 5.0.5, 7.0.0 - 7.3.1
vars.php I: 10T: 20E: 0 Notice: Undefined variable: i in /in/enXVa on line 15 Notice: Undefined variable: t in /in/enXVa on line 15 E: 0
Output for 5.1.0 - 5.6.28
vars.php I: 10T: 20E: 0 Notice: Undefined variable: t in /in/enXVa on line 15 Notice: Undefined variable: i in /in/enXVa on line 15 E: 0
Output for 4.3.0 - 5.0.3
vars.php I: 10T: 20E: 0 Notice: Undefined variable: i in /in/enXVa on line 15 Notice: Undefined variable: t in /in/enXVa on line 15 E: 0