Fatal error: Uncaught Error: Undefined constant "i" in /in/V5aGI:6
Stack trace:
#0 /in/V5aGI(10): my_sum(Array)
#1 {main}
thrown in /in/V5aGI on line 6
Process exited with code 255.
Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/V5aGI on line 6
Notice: Undefined index: i in /in/V5aGI on line 6
The sum of all array elements is 0 <br />
Output for 7.3.32 - 7.3.33, 7.4.26
Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/V5aGI on line 6
The sum of all array elements is 0 <br />
Notice: Use of undefined constant i - assumed 'i' in /in/V5aGI on line 6
Notice: Undefined index: i in /in/V5aGI on line 6
The sum of all array elements is 0 <br />
Notice: Use of undefined constant i - assumed 'i' in /in/V5aGI on line 6
Notice: Undefined index: i in /in/V5aGI on line 6
The sum of all array elements is 0 <br />