3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 2 ** 31 - 1; $prime = 2123809381; $inverse = 59260789; $xor = 1163945558; $value = 3802099463828355; $encoded = ((int) ($value * $prime) & $max) ^ $xor; echo $encoded; echo (($value * $prime) & $max) ^ $xor; echo (int) (($value ^ $xor) * $inverse) & $max; echo (($value ^ $xor) * $inverse) & $max;
Output for git.master_jit, git.master, rfc.property-hooks
90203734 Deprecated: Implicit conversion from float 8.07493450877373E+24 to int loses precision in /in/P1Js3 on line 13 902037341543503872 Deprecated: Implicit conversion from float 2.253153530625348E+23 to int loses precision in /in/P1Js3 on line 17 1543503872

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:
35.75 ms | 406 KiB | 5 Q