Fatal error: Uncaught TypeError: array_shift(): Argument #1 ($array) must be of type array, int given in /in/T0u6T:13
Stack trace:
#0 /in/T0u6T(13): array_shift(5)
#1 /in/T0u6T(13): sum(5)
#2 /in/T0u6T(17): sum(Array)
#3 {main}
thrown in /in/T0u6T on line 13
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: array_shift() expects parameter 1 to be array, int given in /in/T0u6T on line 13
Notice: Trying to access array offset on value of type null in /in/T0u6T on line 11
Output for 7.3.0 - 7.3.33
Warning: array_shift() expects parameter 1 to be array, int given in /in/T0u6T on line 13