Skip to content

TAILLCALL VM: Do not return in ZEND_VM_ENTER_EX, ZEND_VM_LEAVE#21475

Open
arnaud-lb wants to merge 2 commits intophp:masterfrom
arnaud-lb:enter-tailcall
Open

TAILLCALL VM: Do not return in ZEND_VM_ENTER_EX, ZEND_VM_LEAVE#21475
arnaud-lb wants to merge 2 commits intophp:masterfrom
arnaud-lb:enter-tailcall

Conversation

@arnaud-lb
Copy link
Member

@arnaud-lb arnaud-lb commented Mar 20, 2026

The TAILLCALL VM returns in ZEND_VM_ENTER_EX and ZEND_VM_LEAVE, but that's not necessary.

Redefine ZEND_VM_ENTER_EX, ZEND_VM_LEAVE so that they tailcall instead.

This makes the Symfony and bench.php benchmarks about 1% and 3.5% faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants