3v4l.org

run code in 300+ 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, git.master_jit, rfc.property-hooks
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:
38.15 ms | 405 KiB | 5 Q