sebastian/environment
Provides functionality to handle HHVM/PHP environments
9.3.2
943M downloads/mo
#50 most downloaded on composer
sebastianbergmann/environment
What this package is like to depend on
Last release 3 months ago
25 May 2026
Release timing varies
gaps range from 1 weeks to 7 months
Most releases are documented
notes for 44 of 62 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
62 releases · first in 2014
11 releases in the last 12 months
see the full history below
Release timeline
62 releases · Feb 2014 to May 2026Releases
latest 60 of 62-
9.3.225 May 2026Release notes
Open source →Fixed
- #99:
Runtime::getCurrentSettings()forwards empty-string overrides for php.ini-only extensions
Release notes
Open source →Fixed
- #99:
Runtime::getCurrentSettings()forwards empty-string overrides for php.ini-only extensions
- #99:
-
9.3.121 May 2026Release notes
Open source →Fixed
- #64:
Runtime::getCurrentSettings()does not quote values, breakingphp -dround-trip
Release notes
Open source →Fixed
- #64:
Runtime::getCurrentSettings()does not quote values, breakingphp -dround-trip
- #64:
-
9.3.015 Apr 2026 -
9.2.005 Apr 2026 -
9.1.022 Mar 2026 -
9.0.115 Mar 2026 -
9.0.006 Feb 2026 -
8.1.225 May 2026Release notes
Open source →Fixed
- #99:
Runtime::getCurrentSettings()forwards empty-string overrides for php.ini-only extensions
Release notes
Open source →Fixed
- #99:
Runtime::getCurrentSettings()forwards empty-string overrides for php.ini-only extensions
- #99:
-
8.1.121 May 2026Release notes
Open source →Fixed
- #64:
Runtime::getCurrentSettings()does not quote values, breakingphp -dround-trip
Release notes
Open source →Fixed
- #64:
Runtime::getCurrentSettings()does not quote values, breakingphp -dround-trip
- #64:
-
8.1.015 Apr 2026 -
8.0.415 Mar 2026 -
8.0.312 Aug 2025 -
8.0.221 May 2025 -
8.0.121 May 2025Release notes
Open source →Fixed
- Take Xdebug mode into account for
Runtime::canCollectCodeCoverage()
- Take Xdebug mode into account for
-
8.0.007 Feb 2025 -
7.2.121 May 2025Release notes
Open source →Fixed
- Take Xdebug mode into account for
Runtime::canCollectCodeCoverage()
- Take Xdebug mode into account for
-
7.2.003 Jul 2024Release notes
Open source →Changed
- Synced
Console::hasColorSupport()with Symfony'sStreamOutput::hasColorSupport()implementation - Removed code left over from a time before PHP 5.4 and when HHVM was still supported
- This project now uses PHPStan instead of Psalm for static analysis
Deprecated
- The
Runtime::getBinary()method is now deprecated, useescapeshellarg(PHP_BINARY)instead - The
Runtime::getRawBinary()method is now deprecated, use thePHP_BINARYconstant instead
- Synced
-
7.1.023 Mar 2024 -
7.0.002 Feb 2024 -
6.1.023 Mar 2024 -
6.0.111 Apr 2023 -
6.0.003 Feb 2023Release notes
Open source →Removed
- Removed
SebastianBergmann\Environment\OperatingSystem::getFamily()because this component is no longer supported on PHP versions that do not havePHP_OS_FAMILY - Removed
SebastianBergmann\Environment\Runtime::isHHVM() - This component is no longer supported on PHP 7.3, PHP 7.4, and PHP 8.0
- Removed
-
5.1.503 Feb 2023Release notes
Open source →Fixed
- #59: Wrong usage of
stream_isatty(),fstat()used without checking whether the function is available
- #59: Wrong usage of
-
5.1.403 Apr 2022Release notes
Open source →Fixed
- #63:
Runtime::getCurrentSettings()does not correctly process INI settings
- #63:
-
5.1.328 Sep 2020Release notes
Open source →Changed
- Changed PHP version constraint in
composer.jsonfrom^7.3 || ^8.0to>=7.3
- Changed PHP version constraint in
-
5.1.226 Jun 2020 -
5.1.115 Jun 2020 -
5.1.014 Apr 2020Release notes
Open source →Added
Runtime::performsJustInTimeCompilation()returnstrueif PHP 8's JIT is active,falseotherwise
-
5.0.231 Mar 2020 -
5.0.119 Feb 2020Release notes
Open source →Changed
Runtime::getNameWithVersionAndCodeCoverageDriver()now prioritizes PCOV over Xdebug when both extensions are loaded (just like php-code-coverage does)
-
5.0.007 Feb 2020 -
4.2.501 Mar 2024Nothing published for this version
-
4.2.430 Nov 2020Nothing published for this version
-
4.2.320 Nov 2019Release notes
Open source →Changed
- #50: Windows improvements to console capabilities
Fixed
- #49: Detection how OpCache handles docblocks does not work correctly when PHPDBG is used
-
4.2.205 May 2019 -
4.2.125 Apr 2019 -
4.2.025 Apr 2019 -
4.1.001 Feb 2019Release notes
Open source →Added
- Implemented
Runtime::getNameWithVersionAndCodeCoverageDriver()method - #34: Support for PCOV extension
- Implemented
-
4.0.228 Jan 2019Release notes
Open source →Fixed
- #33:
Runtime::discardsComments()returns true too eagerly
Removed
- Removed support for Zend Optimizer+ in
Runtime::discardsComments()
- #33:
-
4.0.125 Nov 2018 -
3.1.001 Jul 2017 -
3.0.420 Jun 2017 -
3.0.318 May 2017Release notes
Open source →Fixed
- #18:
Uncaught TypeError: preg_match() expects parameter 2 to be string, null given
- #18:
-
3.0.221 Apr 2017Release notes
Open source →Fixed
- #17:
Uncaught TypeError: trim() expects parameter 1 to be string, boolean given
- #17:
-
3.0.121 Apr 2017 -
3.0.021 Apr 2017Release notes
Open source →Added
- Implemented
Runtime::discardsComments()for querying whether the PHP runtime discards annotations
Removed
- This component is no longer supported on PHP 5.6
- Implemented
-
2.0.026 Nov 2016Nothing published for this version
-
1.3.818 Aug 2016Nothing published for this version
-
1.3.717 May 2016Nothing published for this version
-
1.3.604 May 2016Nothing published for this version
-
1.3.526 Feb 2016Nothing published for this version
-
1.3.426 Feb 2016Nothing published for this version
-
1.3.302 Dec 2015Nothing published for this version
-
1.3.203 Aug 2015Nothing published for this version
-
1.3.102 Aug 2015Nothing published for this version
-
1.3.026 Jul 2015Nothing published for this version
-
1.2.201 Jan 2015Nothing published for this version
-
1.2.125 Oct 2014Nothing published for this version
-
1.2.022 Oct 2014Nothing published for this version
-
1.1.007 Oct 2014Nothing published for this version