3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xor1 = gmp_init(0x123456); $xor2 = gmp_init(0x851964); echo $xor1 . "\n"; echo $xor2 . "\n"; $xor3 = gmp_xor(1193046, 8722788); echo $xor3 . "\n"; echo gmp_strval($xor3, 16) . "\n";
based on m9F7r
Output for 5.6.0 - 5.6.20, 5.6.28 - 7.0.5, 7.0.20 - 7.2.6, 7.3.0rc3
1193046 8722788 9907506 972d32
Output for 7.0.6, 7.3.0alpha1 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function gmp_init() in /in/aVTFM:2 Stack trace: #0 {main} thrown in /in/aVTFM on line 2
Process exited with code 255.
Output for 5.5.35, 5.6.21
Fatal error: Call to undefined function gmp_init() in /in/aVTFM on line 2
Process exited with code 255.
Output for 5.5.0 - 5.5.34
Resource id #4 Resource id #5 Resource id #8 972d32