3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bcmul_hex($h1, $h2) { $dec = bcmul($h1, $h2); $hex = ''; do { $last = bcmod($dec, 16); $hex = dechex($last).$hex; $dec = bcdiv(bcsub($dec, $last), 16); } while($dec>0); return $hex; } echo bcmul_hex(0xB5365D09, 0xDEBC252C);
Output for 8.5.1 - 8.5.3
Fatal error: Uncaught Error: Call to undefined function bcmul() in /in/riiil:4 Stack trace: #0 /in/riiil(14): bcmul_hex(3040238857, 3736872236) #1 {main} thrown in /in/riiil on line 4
Process exited with code 255.
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
9daa52ea21664a8c

preferences:
93.96 ms | 1108 KiB | 4 Q