|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68867 Opcache performance regression
Submitted: 2015-01-20 19:25 UTC Modified: 2015-01-27 22:54 UTC
From: lukemauldin at gmail dot com Assigned:
Status: Closed Package: Performance problem
PHP Version: 5.6.4 OS: Windows Server 2008 R2 SP1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: lukemauldin at gmail dot com
New email:
PHP Version: OS:


 [2015-01-20 19:25 UTC] lukemauldin at gmail dot com
Git repository with code to reproduce bug:

The above Git repository is a standard Laravel application with these routes added:

I obtained the HTTP response times below (in milliseconds) on a AWS Windows Server 2008 R2 instance using IIS and FastCGI.  I measured using curl on the local instance to prevent any network problems.  They were repeatable over a period of several days.  PHP 5.6 is version 5.6.4  PHP 5.4 is version 5.4.4.  Both use the standard PHP Windows downloads from

Url	PHP 5.4 wo/Opache	PHP 5.4 w/Opache	PHP 5.6 wo/Opache	PHP 5.6 w/Opache
/showview	60	17	51	17
/simplejson	60	16	53	16
/simplepdo/1	70	23	59	23
/simplepdo/100	294	130	197	182
/simpleeloquent/1	85	28	67	29
/simpleeloquent/100	365	260	298	272

PHP 5.6 without Opcache is faster than PHP 5.4 without Opcache, which is expected.  However, with Opcache enabled, PHP 5.4 is faster than PHP 5.6 in the /simplepdo/100 and /simpleeqloent/100 tests which is clearly a regression.  The php.ini section for opcache is the same in both:

opcache.enable = 1
opcache.memory_consumption = 64
opcache.interned_strings_buffer = 12
opcache.save_comments = 0


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-20 19:27 UTC] lukemauldin at gmail dot com
The exact PHP download files:
 [2015-01-27 22:54 UTC] lukemauldin at gmail dot com
-Status: Open +Status: Closed
 [2015-01-27 22:54 UTC] lukemauldin at gmail dot com
Confirmed non-issue by more accurate testing
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Feb 29 10:01:27 2020 UTC