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($result); // Print result echo "Result: $hex_result\n";
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, 8.5.0 - 8.5.3
Fatal error: Uncaught TypeError: dechex(): Argument #1 ($num) must be of type int, float given in /in/pPqhU:14 Stack trace: #0 /in/pPqhU(14): dechex(1.1360984175532E+19) #1 {main} thrown in /in/pPqhU on line 14
Process exited with code 255.

preferences:
67.7 ms | 1142 KiB | 4 Q