3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = -65; printf("%d is 0x%x\n",$n,$n); $hex = sprintf("%x",$n); var_dump($hex + 0); printf("\n%d\n",$hex + 0); $x = "0x".$hex; echo $x+0;
Output for git.master, git.master_jit, rfc.property-hooks
-65 is 0xffffffffffffffbf Fatal error: Uncaught TypeError: Unsupported operand types: string + int in /in/TlpgK:6 Stack trace: #0 {main} thrown in /in/TlpgK on line 6
Process exited with code 255.

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