array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
Fatal error: Uncaught Error: Non-static method Category::getCategories() cannot be called statically in /in/eMj68:22
Stack trace:
#0 {main}
thrown in /in/eMj68 on line 22
Process exited with code 255.
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 7.0.33
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
Deprecated: Non-static method Category::getCategories() should not be called statically in /in/eMj68 on line 22
Fatal error: Uncaught Error: Using $this when not in object context in /in/eMj68:9
Stack trace:
#0 /in/eMj68(22): Category::getCategories('xxx')
#1 {main}
thrown in /in/eMj68 on line 9
Process exited with code 255.