3v4l.org

run code in 500+ PHP versions simultaneously
<?php $maxTest = function (int $int) { $value = (PHP_INT_MAX + $int); $result = $value > PHP_INT_MAX ? 'Yes' : 'No'; echo "Result for {$value}: {$result}" . PHP_EOL; }; $maxTest(1); $maxTest(1000); $maxTest(1025);
Output for git.master, rfc.property-hooks, git.master_jit
Result for 9.2233720368548E+18: No Result for 9.2233720368548E+18: No Result for 9.2233720368548E+18: Yes

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:
45.87 ms | 2680 KiB | 4 Q