3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is32Bit() { // This is for max compatibility: // PHP_INT_MAX doesn't exist in PHP4 // current() *requires* a reference in PHP <5.1.0 (except 4.4.1, dafuq) $test = unpack('N', "\xFF\xFF\xFF\xFF"); var_dump(current($test)); } var_dump(is32Bit());
Output for git.master, git.master_jit, rfc.property-hooks
int(4294967295) NULL

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:
37.97 ms | 401 KiB | 8 Q