It looks like you activated xdebug - disable it and see it it will get back to normal.
I'm not big fan of xdebug as i always coused issues for myself.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Out of the sudden, laravel and PHP 7.3.31:
PHP 7.3.31 (cli) (built: Sep 25 2021 08:05:33) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.31, Copyright (c) 1998-2018 Zend Technologies
with Xdebug v2.9.0, Copyright (c) 2002-2019, by Derick Rethans
with Zend OPcache v7.3.31, Copyright (c) 1999-2018, by Zend Technologies
Is taking up 100% of my CPU usage and every time I load my website, the refresh is EXTREMELY slow.
I tried getting a sample of what's going on in the process and I saw this:
Call graph:
2556 Thread_36283 DispatchQueue_1: com.apple.main-thread (serial)
2556 start (in libdyld.dylib) + 1 [0x7fff2053ef3d]
2556 main (in php) + 1424 [0x10d0a5d7a]
2556 do_cli_server (in php) + 2332 [0x10d0ab5d7]
2556 php_cli_server_do_event_for_each_fd_callback (in php) + 153 [0x10d0ad3bf]
2556 php_cli_server_recv_event_read_request (in php) + 612 [0x10d0ac943]
2556 php_cli_server_dispatch_router (in php) + 202 [0x10d0ae7f2]
2556 zend_execute_scripts (in php) + 269 [0x10cffd853]
2556 zend_execute (in php) + 317 [0x10d037a02]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER (in php) + 583 [0x10d06bc2b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411 [0x10d067e4b]
2556 xdebug_execute_ex (in xdebug.so) + 1060 [0x10ed76154]
2556 execute_ex (in php) + 45 [0x10d037853]
2556 ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (in php) + 411
Unfortunately, I am not a pro to understand what this is, but I got it as a sample from the Mac OS Activity Monitor. How can I fix this problem?
It looks like you activated xdebug - disable it and see it it will get back to normal.
I'm not big fan of xdebug as i always coused issues for myself.
Please or to participate in this conversation.