- Output for git.master, git.master_jit, rfc.property-hooks
- ================================================= Given the following inputs: int(506) int(10) The results will be: ceil: float(51) round + ceil: float(51) wp_total_pages: int(51) intdiv: int(51) bcdiv: int(51) And the results with an int cast added will be: ceil: int(51) round + ceil: int(51) wp_total_pages: int(51) intdiv: int(51) bcdiv: int(51) ================================================= Given the following inputs: int(505) int(10) The results will be: ceil: float(51) round + ceil: float(51) wp_total_pages: int(51) intdiv: int(51) bcdiv: int(51) And the results with an int cast added will be: ceil: int(51) round + ceil: int(51) wp_total_pages: int(51) intdiv: int(51) bcdiv: int(51) ================================================= Given the following inputs: int(504) int(10) The results will be: ceil: float(51) round + ceil: float(51) wp_total_pages: int(51) intdiv: int(51) bcdiv: int(51) And the results with an int cast added will be: ceil: int(51) round + ceil: int(51) wp_total_pages: int(51) intdiv: int(51) bcdiv: int(51) ================================================= Given the following inputs: int(500) float(9.5) Deprecated: Implicit conversion from float 9.5 to int loses precision in /in/V6jdD on line 26 The results will be: ceil: float(53) round + ceil: float(53) wp_total_pages: Deprecated: Implicit conversion from float 9.5 to int loses precision in /in/V6jdD on line 4 float(53.10526315789474) intdiv: Deprecated: Implicit conversion from float 9.5 to int loses precision in /in/V6jdD on line 35 int(56) bcdiv: int(53) And the results with an int cast added will be: ceil: int(53) round + ceil: int(53) wp_total_pages: Deprecated: Implicit conversion from float 9.5 to int loses precision in /in/V6jdD on line 4 int(53) intdiv: Deprecated: Implicit conversion from float 9.5 to int loses precision in /in/V6jdD on line 54 int(56) bcdiv: int(53) ================================================= Given the following inputs: int(500) int(9) The results will be: ceil: float(56) round + ceil: float(56) wp_total_pages: int(56) intdiv: int(56) bcdiv: int(56) And the results with an int cast added will be: ceil: int(56) round + ceil: int(56) wp_total_pages: int(56) intdiv: int(56) bcdiv: int(56) ================================================= Given the following inputs: int(35478743512) int(15) The results will be: ceil: float(2365249568) round + ceil: float(2365249568) wp_total_pages: int(2365249568) intdiv: int(2365249568) bcdiv: int(2365249568) And the results with an int cast added will be: ceil: int(2365249568) round + ceil: int(2365249568) wp_total_pages: int(2365249568) intdiv: int(2365249568) bcdiv: int(2365249568) ================================================= Given the following inputs: int(9223372036854775807) int(20) The results will be: ceil: float(4.611686018427388E+17) round + ceil: float(4.611686018427388E+17) wp_total_pages: float(4.611686018427388E+17) intdiv: int(461168601842738791) bcdiv: int(461168601842738791) And the results with an int cast added will be: ceil: int(461168601842738816) round + ceil: int(461168601842738816) wp_total_pages: int(461168601842738816) intdiv: int(461168601842738791) bcdiv: int(461168601842738791) ================================================= Given the following inputs: float(9.223372036854776E+18) int(20) Deprecated: Implicit conversion from float 9.223372036854776E+18 to int loses precision in /in/V6jdD on line 26 The results will be: ceil: float(4.611686018427388E+17) round + ceil: float(4.611686018427388E+17) wp_total_pages: Deprecated: Implicit conversion from float 9.223372036854776E+18 to int loses precision in /in/V6jdD on line 4 float(4.611686018427388E+17) intdiv: intdiv: intdiv(): Argument #1 ($num1) must be of type int, float given bcdiv: bcdiv: bcdiv(): Argument #1 ($num1) is not well-formed And the results with an int cast added will be: ceil: int(461168601842738816) round + ceil: int(461168601842738816) wp_total_pages: Deprecated: Implicit conversion from float 9.223372036854776E+18 to int loses precision in /in/V6jdD on line 4 int(461168601842738816) intdiv: intdiv: intdiv(): Argument #1 ($num1) must be of type int, float given bcdiv: bcdiv: bcdiv(): Argument #1 ($num1) is not well-formed
This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.
Active branches
Archived branches
Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page
- 2020-03-21 RFC: Is_Literal - declined
- 2020-12-04 Enumerations - included in PHP 8.1
- 2018-06-15 Typed Properties v2 - implemented in PHP 7.4
- 2016-08-12 Object typehint - included in PHP 7.2
- 2016-08-14 Arrow functions - withdrawn
- 2016-05-29 array_change_keys() - withdrawn
- 2016-04-19 Lexical scope support for anonymous classes - suspended
- 2016-04-17 Functional Interfaces - declined
- 2016-03-16 Typed Properties - superseded in favor of Typed Properties 2.0
- 2015-08-27 Callable Prototypes - declined
- 2015-05-01 Short Closures - declined / withdrawn in favor of Arrow Functions
- 2015-02-18 Scalar type hints v5 - included in PHP 7
- 2015-02-14 Union Types - declined
- 2013-09-22 Anonymous classes - included in PHP 7