3v4l.org

run code in 500+ PHP versions simultaneously
<?php function ROTR( $x, $t ){ return gmp_and(gmp_or(gmp_div($x, 1 << $t), gmp_mul($x, 1 << (32 - $t))), "4294967295"); } function Σ0( $x ){ echo("SIG INPUT: " . $x . "\n" ); $s0 = ROTR( $x, 2 ); $s1 = ROTR( $x, 13 ); $s2 = ROTR( $x, 22 ); echo( "SIGMA0 2: " . gmp_strval($s0, 10) . "\n" ); echo( "SIGMA0 13: " . gmp_strval($s1, 10) . "\n" ); echo( "SIGMA0 22: " . gmp_strval($s2, 10) . "\n" ); return ( gmp_xor($s0, gmp_xor($s1, $s2)) ); } Σ0( 1779033703 );
Output for master
SIG INPUT: 1779033703 Fatal error: Uncaught Error: Call to undefined function gmp_and() in /in/CWafR:4 Stack trace: #0 /in/CWafR(10): ROTR(1779033703, 2) #1 /in/CWafR(21): Σ0(1779033703) #2 {main} thrown in /in/CWafR on line 4
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
12.63 ms | 1167 KiB | 7 Q