3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function main() { $x = array('hakunamatata' => 12); for ($i = 0; $i < 1000000; $i++) { $s += $x['hakunamatata']; } var_dump($s); } main();
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: s in /in/A9veO on line 6 int(12000000)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: s in /in/A9veO on line 6 int(12000000)