3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $count = 100000; $total = array(); for ($i=0; $i<$count; $i++) { $total[] = $i; } $total2=0; for ($i=0; $i<count; $i++) { $total2 += $total[$i]; } var_dump($total2);
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant count - assumed 'count' (this will throw an Error in a future version of PHP) in /in/7KBca on line 10 int(0)
Output for 4.3.0 - 7.1.20
Notice: Use of undefined constant count - assumed 'count' in /in/7KBca on line 10 int(0)