3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = "Salz in der Suppe"; $url1 = "http://gibtsnicht.eazy-living.de/?p=91"; $url2 = "http://gibtsnicht.eazy-living.de/?p=92"; $password_hash = crypt($url1, $salt); if (crypt($url1, $password_hash) == $password_hash){ echo "I'm on!\n"; } if (crypt($url2, $password_hash) == $password_hash){ echo "I'm on but should not be!\n"; } echo "=============================\n"; $salt = '$2y$07$usesomesillystringforsalt$'; $url1 = "http://gibtsnicht.eazy-living.de/?p=91"; $url2 = "http://gibtsnicht.eazy-living.de/?p=92"; $password_hash = crypt($url1, $salt); if (crypt($url1, $password_hash) == $password_hash){ echo "I'm on!\n"; } if (crypt($url2, $password_hash) == $password_hash){ echo "I'm on but should not be!\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 38
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 45
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
Branch analysis from position: 38
Branch analysis from position: 22
Branch analysis from position: 15
filename:       /in/kXl4R
function name:  (null)
number of ops:  46
compiled vars:  !0 = $salt, !1 = $url1, !2 = $url2, !3 = $password_hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Salz+in+der+Suppe'
    4     1        ASSIGN                                                   !1, 'http%3A%2F%2Fgibtsnicht.eazy-living.de%2F%3Fp%3D91'
    5     2        ASSIGN                                                   !2, 'http%3A%2F%2Fgibtsnicht.eazy-living.de%2F%3Fp%3D92'
    7     3        INIT_FCALL                                               'crypt'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !3, $7
    9     8        INIT_FCALL                                               'crypt'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $9      
         12        IS_EQUAL                                                 !3, $9
         13      > JMPZ                                                     ~10, ->15
   10    14    >   ECHO                                                     'I%27m+on%21%0A'
   12    15    >   INIT_FCALL                                               'crypt'
         16        SEND_VAR                                                 !2
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $11     
         19        IS_EQUAL                                                 !3, $11
         20      > JMPZ                                                     ~12, ->22
   13    21    >   ECHO                                                     'I%27m+on+but+should+not+be%21%0A'
   16    22    >   ECHO                                                     '%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A'
   18    23        ASSIGN                                                   !0, '%242y%2407%24usesomesillystringforsalt%24'
   19    24        ASSIGN                                                   !1, 'http%3A%2F%2Fgibtsnicht.eazy-living.de%2F%3Fp%3D91'
   20    25        ASSIGN                                                   !2, 'http%3A%2F%2Fgibtsnicht.eazy-living.de%2F%3Fp%3D92'
   22    26        INIT_FCALL                                               'crypt'
         27        SEND_VAR                                                 !1
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                         $16     
         30        ASSIGN                                                   !3, $16
   24    31        INIT_FCALL                                               'crypt'
         32        SEND_VAR                                                 !1
         33        SEND_VAR                                                 !3
         34        DO_ICALL                                         $18     
         35        IS_EQUAL                                                 !3, $18
         36      > JMPZ                                                     ~19, ->38
   25    37    >   ECHO                                                     'I%27m+on%21%0A'
   27    38    >   INIT_FCALL                                               'crypt'
         39        SEND_VAR                                                 !2
         40        SEND_VAR                                                 !3
         41        DO_ICALL                                         $20     
         42        IS_EQUAL                                                 !3, $20
         43      > JMPZ                                                     ~21, ->45
   28    44    >   ECHO                                                     'I%27m+on+but+should+not+be%21%0A'
   29    45    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.79 ms | 1392 KiB | 15 Q