3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hex1 = "B5365D09"; $hex2 = "DEBC252C"; // Convert hexadecimal values to decimal $dec1 = hexdec($hex1); $dec2 = hexdec($hex2); // Perform multiplication operation $result = $dec1 * $dec2; // Convert result back to hexadecimal $hex_result = dechex((int)$result); // Print result echo "Result: $hex_result\n";
Output for 8.5.0 - 8.5.3
Warning: The float 1.1360984175531674E+19 is not representable as an int, cast occurred in /in/Fc1aP on line 14 Result: 9daa52ea21664800
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18
Result: 9daa52ea21664800

preferences:
70.52 ms | 1108 KiB | 4 Q