3v4l.org

run code in 300+ PHP versions simultaneously
<?php // testing: http://www.phpsadness.com/sad/47 $password = "ximaz"; $broken_hash = "61529519452809720000000000000000"; $hash = md5($password); if (md5($password) == $broken_hash) { print "Broken - Allowed!\n"; } if (md5($password) === $broken_hash) { print "Type-Strict Broken - Allowed!\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 12
filename:       /in/UQJRm
function name:  (null)
number of ops:  19
compiled vars:  !0 = $password, !1 = $broken_hash, !2 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'ximaz'
    6     1        ASSIGN                                                   !1, '61529519452809720000000000000000'
    7     2        INIT_FCALL                                               'md5'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !2, $5
    9     6        INIT_FCALL                                               'md5'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $7      
          9        IS_EQUAL                                                 !1, $7
         10      > JMPZ                                                     ~8, ->12
   10    11    >   ECHO                                                     'Broken+-+Allowed%21%0A'
   13    12    >   INIT_FCALL                                               'md5'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $9      
         15        IS_IDENTICAL                                             !1, $9
         16      > JMPZ                                                     ~10, ->18
   14    17    >   ECHO                                                     'Type-Strict+Broken+-+Allowed%21%0A'
   15    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.58 ms | 1395 KiB | 15 Q