3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = '$2y$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'; $test = crypt("password", $hash); $pass = $test == $hash; echo "Test for functionality of compat library: " . ($pass ? "Pass" : "Fail"); echo "\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VgIPJ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $hash, !1 = $test, !2 = $pass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%242y%2404%24usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'
    4     1        INIT_FCALL                                               'crypt'
          2        SEND_VAL                                                 'password'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        IS_EQUAL                                         ~6      !1, !0
          7        ASSIGN                                                   !2, ~6
    7     8      > JMPZ                                                     !2, ->11
          9    >   QM_ASSIGN                                        ~8      'Pass'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~8      'Fail'
         12    >   CONCAT                                           ~9      'Test+for+functionality+of+compat+library%3A+', ~8
         13        ECHO                                                     ~9
    8    14        ECHO                                                     '%0A'
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.97 ms | 1386 KiB | 15 Q