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 = "$2a$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 = 40, Position 2 = 41
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 48
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
Branch analysis from position: 41
Branch analysis from position: 22
Branch analysis from position: 15
filename:       /in/WPXjJ
function name:  (null)
number of ops:  49
compiled vars:  !0 = $salt, !1 = $url1, !2 = $url2, !3 = $password_hash, !4 = $usesomesillystringforsalt
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                                         $8      
          7        ASSIGN                                                   !3, $8
    9     8        INIT_FCALL                                               'crypt'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $10     
         12        IS_EQUAL                                                 !3, $10
         13      > JMPZ                                                     ~11, ->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                                         $12     
         19        IS_EQUAL                                                 !3, $12
         20      > JMPZ                                                     ~13, ->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        ROPE_INIT                                     3  ~15     '%242a%2407'
         24        ROPE_ADD                                      1  ~15     ~15, !4
         25        ROPE_END                                      2  ~14     ~15, '%24'
         26        ASSIGN                                                   !0, ~14
   19    27        ASSIGN                                                   !1, 'http%3A%2F%2Fgibtsnicht.eazy-living.de%2F%3Fp%3D91'
   20    28        ASSIGN                                                   !2, 'http%3A%2F%2Fgibtsnicht.eazy-living.de%2F%3Fp%3D92'
   22    29        INIT_FCALL                                               'crypt'
         30        SEND_VAR                                                 !1
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                         $20     
         33        ASSIGN                                                   !3, $20
   24    34        INIT_FCALL                                               'crypt'
         35        SEND_VAR                                                 !1
         36        SEND_VAR                                                 !3
         37        DO_ICALL                                         $22     
         38        IS_EQUAL                                                 !3, $22
         39      > JMPZ                                                     ~23, ->41
   25    40    >   ECHO                                                     'I%27m+on%21%0A'
   27    41    >   INIT_FCALL                                               'crypt'
         42        SEND_VAR                                                 !2
         43        SEND_VAR                                                 !3
         44        DO_ICALL                                         $24     
         45        IS_EQUAL                                                 !3, $24
         46      > JMPZ                                                     ~25, ->48
   28    47    >   ECHO                                                     'I%27m+on+but+should+not+be%21%0A'
   29    48    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.18 ms | 1400 KiB | 15 Q