3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user = "106516"; $pass = "106516"; $user_sha = sha1( strrev( str_rot13( strtolower( $user ) ) ) ); $totaal = $pass; if ( !$from_cookie ) { $pass_sha = sha1( strrev( str_rot13( $pass ) ) ); $totaal = substr($pass_sha, 0, -2).substr($user_sha, 15, 1).substr($user_sha, 4, 1); } echo $totaal;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 46
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
filename:       /in/d3htu
function name:  (null)
number of ops:  48
compiled vars:  !0 = $user, !1 = $pass, !2 = $user_sha, !3 = $totaal, !4 = $from_cookie, !5 = $pass_sha
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '106516'
    3     1        ASSIGN                                                   !1, '106516'
    5     2        INIT_FCALL                                               'sha1'
          3        INIT_FCALL                                               'strrev'
          4        INIT_FCALL                                               'str_rot13'
          5        INIT_FCALL                                               'strtolower'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $8      
          8        SEND_VAR                                                 $8
          9        DO_ICALL                                         $9      
         10        SEND_VAR                                                 $9
         11        DO_ICALL                                         $10     
         12        SEND_VAR                                                 $10
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !2, $11
    6    15        ASSIGN                                                   !3, !1
    7    16        BOOL_NOT                                         ~14     !4
         17      > JMPZ                                                     ~14, ->46
    9    18    >   INIT_FCALL                                               'sha1'
         19        INIT_FCALL                                               'strrev'
         20        INIT_FCALL                                               'str_rot13'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $15     
         23        SEND_VAR                                                 $15
         24        DO_ICALL                                         $16     
         25        SEND_VAR                                                 $16
         26        DO_ICALL                                         $17     
         27        ASSIGN                                                   !5, $17
   10    28        INIT_FCALL                                               'substr'
         29        SEND_VAR                                                 !5
         30        SEND_VAL                                                 0
         31        SEND_VAL                                                 -2
         32        DO_ICALL                                         $19     
         33        INIT_FCALL                                               'substr'
         34        SEND_VAR                                                 !2
         35        SEND_VAL                                                 15
         36        SEND_VAL                                                 1
         37        DO_ICALL                                         $20     
         38        CONCAT                                           ~21     $19, $20
         39        INIT_FCALL                                               'substr'
         40        SEND_VAR                                                 !2
         41        SEND_VAL                                                 4
         42        SEND_VAL                                                 1
         43        DO_ICALL                                         $22     
         44        CONCAT                                           ~23     ~21, $22
         45        ASSIGN                                                   !3, ~23
   12    46    >   ECHO                                                     !3
         47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.84 ms | 1400 KiB | 23 Q