You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fatal error backtrace suggests include is a function #25971
PHP Fatal error: Uncaught Error: Call to undefined function hey() in /home/user1/test.php:12
Stack trace:
#0 /home/user1/test.php(14): moh()
#1 /home/user1/test.php(6): include('/home/user1/test.php')
#2 {main}
thrown in /home/user1/test.php on line 12
But I expected this output instead:
PHP Fatal error: Uncaught Error: Call to undefined function hey() in /home/user1/test.php:12
Stack trace:
#0 /home/user1/test.php(14): moh()
#1 /home/user1/test.php(6): include '/home/user1/test.php'
#2 {main}
thrown in /home/user1/test.php on line 12
The problem is it shows include in function style which makes users use it like a function e.g. if (include("my.php") === 123)
which doesn't work because it has to be if ((include "my.php") === 123)
If you're using 3v4l I don't know why but you have to hit eval, the live preview doesn't work.
PHP Version
PHP 8.4.28 (cli) (built: Nov 18 2026 10:55:31) (NTS)
Copyright (c) The PHP Group
Built by Debian
Zend Engine v4.4.28, Copyright (c) Zend Technologies
with Zend OPcache v8.4.28, Copyright (c), by Zend Technologies
Activity