3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = '$1$rasmusle$'; $pass = 'foobar'; $algo = 'md5'; $poor = hash($algo, $salt . $pass); $meh = crypt($pass); $better = crypt($pass, $salt); echo "$poor\n"; echo "$meh\n"; echo "$better\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lcZPC
function name:  (null)
number of ops:  28
compiled vars:  !0 = $salt, !1 = $pass, !2 = $algo, !3 = $poor, !4 = $meh, !5 = $better
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%241%24rasmusle%24'
    3     1        ASSIGN                                                   !1, 'foobar'
    4     2        ASSIGN                                                   !2, 'md5'
    7     3        INIT_FCALL                                               'hash'
          4        SEND_VAR                                                 !2
          5        CONCAT                                           ~9      !0, !1
          6        SEND_VAL                                                 ~9
          7        DO_ICALL                                         $10     
          8        ASSIGN                                                   !3, $10
    8     9        INIT_FCALL                                               'crypt'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $12     
         12        ASSIGN                                                   !4, $12
    9    13        INIT_FCALL                                               'crypt'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $14     
         17        ASSIGN                                                   !5, $14
   12    18        NOP                                                      
         19        FAST_CONCAT                                      ~16     !3, '%0A'
         20        ECHO                                                     ~16
   13    21        NOP                                                      
         22        FAST_CONCAT                                      ~17     !4, '%0A'
         23        ECHO                                                     ~17
   14    24        NOP                                                      
         25        FAST_CONCAT                                      ~18     !5, '%0A'
         26        ECHO                                                     ~18
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
370.77 ms | 1395 KiB | 18 Q