3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( // true 18446744073709552000 > PHP_INT_MAX, // true, as expected.. (18446744073709552000-PHP_INT_MAX) > -1, // false!? wtf? ((int)(18446744073709552000-PHP_INT_MAX)) > -1, // 9223372036854775808 number_format((18446744073709552000-PHP_INT_MAX),0,'.',''), // false: 9223372036854775808 > PHP_INT_MAX, // false!? wtf? ((int)((float)9223372036854775808)) > -1, // ok: float(9.2233720368548E+18) ((float)9223372036854775808), // VERY WRONG: int(-9223372036854775808) ((int)((float)9223372036854775808)) );
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) bool(true) bool(false) string(19) "9223372036854775808" bool(false) bool(false) float(9.223372036854776E+18) int(-9223372036854775808)

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


preferences:
65.42 ms | 401 KiB | 8 Q