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;

preferences:
32.95 ms | 402 KiB | 5 Q