3v4l.org

run code in 300+ 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 );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CWafR
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_FCALL                                               '%CE%A30'
          1        SEND_VAL                                                 1779033703
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function rotr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CWafR
function name:  ROTR
number of ops:  23
compiled vars:  !0 = $x, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL_BY_NAME                                       'gmp_and'
          3        INIT_FCALL_BY_NAME                                       'gmp_or'
          4        INIT_FCALL_BY_NAME                                       'gmp_div'
          5        SEND_VAR_EX                                              !0
          6        SL                                               ~2      1, !1
          7        SEND_VAL_EX                                              ~2
          8        DO_FCALL                                      0  $3      
          9        SEND_VAR_NO_REF_EX                                       $3
         10        INIT_FCALL_BY_NAME                                       'gmp_mul'
         11        SEND_VAR_EX                                              !0
         12        SUB                                              ~4      32, !1
         13        SL                                               ~5      1, ~4
         14        SEND_VAL_EX                                              ~5
         15        DO_FCALL                                      0  $6      
         16        SEND_VAR_NO_REF_EX                                       $6
         17        DO_FCALL                                      0  $7      
         18        SEND_VAR_NO_REF_EX                                       $7
         19        SEND_VAL_EX                                              '4294967295'
         20        DO_FCALL                                      0  $8      
         21      > RETURN                                                   $8
    5    22*     > RETURN                                                   null

End of function rotr

Function %CE%A30:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CWafR
function name:  Σ0
number of ops:  50
compiled vars:  !0 = $x, !1 = $s0, !2 = $s1, !3 = $s2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        CONCAT                                           ~4      'SIG+INPUT%3A+', !0
          2        CONCAT                                           ~5      ~4, '%0A'
          3        ECHO                                                     ~5
   10     4        INIT_FCALL                                               'rotr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 2
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !1, $6
   11     9        INIT_FCALL                                               'rotr'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 13
         12        DO_FCALL                                      0  $8      
         13        ASSIGN                                                   !2, $8
   12    14        INIT_FCALL                                               'rotr'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 22
         17        DO_FCALL                                      0  $10     
         18        ASSIGN                                                   !3, $10
   14    19        INIT_FCALL_BY_NAME                                       'gmp_strval'
         20        SEND_VAR_EX                                              !1
         21        SEND_VAL_EX                                              10
         22        DO_FCALL                                      0  $12     
         23        CONCAT                                           ~13     'SIGMA0+2%3A+', $12
         24        CONCAT                                           ~14     ~13, '%0A'
         25        ECHO                                                     ~14
   15    26        INIT_FCALL_BY_NAME                                       'gmp_strval'
         27        SEND_VAR_EX                                              !2
         28        SEND_VAL_EX                                              10
         29        DO_FCALL                                      0  $15     
         30        CONCAT                                           ~16     'SIGMA0+13%3A+', $15
         31        CONCAT                                           ~17     ~16, '%0A'
         32        ECHO                                                     ~17
   16    33        INIT_FCALL_BY_NAME                                       'gmp_strval'
         34        SEND_VAR_EX                                              !3
         35        SEND_VAL_EX                                              10
         36        DO_FCALL                                      0  $18     
         37        CONCAT                                           ~19     'SIGMA0+22%3A+', $18
         38        CONCAT                                           ~20     ~19, '%0A'
         39        ECHO                                                     ~20
   18    40        INIT_FCALL_BY_NAME                                       'gmp_xor'
         41        SEND_VAR_EX                                              !1
         42        INIT_FCALL_BY_NAME                                       'gmp_xor'
         43        SEND_VAR_EX                                              !2
         44        SEND_VAR_EX                                              !3
         45        DO_FCALL                                      0  $21     
         46        SEND_VAR_NO_REF_EX                                       $21
         47        DO_FCALL                                      0  $22     
         48      > RETURN                                                   $22
   19    49*     > RETURN                                                   null

End of function %CE%A30

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.1 ms | 1442 KiB | 17 Q