3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 15; $highMap = 0xffffffff00000000; $lowMap = 0x00000000ffffffff; $higher = ($value & $highMap) >>32; $lower = $value & $lowMap; $packed = pack('NN@64', $higher, $lower); list($higher, $lower) = array_values(unpack('N2', $packed)); $originalValue = $higher << 32 | $lower; var_dump($originalValue); var_dump($originalValue == $value);
Output for git.master_jit, git.master, rfc.property-hooks
Deprecated: Implicit conversion from float 1.8446744069414584E+19 to int loses precision in /in/MV9UQ on line 5 int(15) bool(true)

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