3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = '$1$rasmusle$'; $pass = 'foobar'; $algo = 'md5'; $poor = hash($algo, $salt . $pass); $better = crypt($pass, $salt); echo "$poor\n"; echo "$better\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DSVPV
function name:  (null)
number of ops:  21
compiled vars:  !0 = $salt, !1 = $pass, !2 = $algo, !3 = $poor, !4 = $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                                           ~8      !0, !1
          6        SEND_VAL                                                 ~8
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !3, $9
    8     9        INIT_FCALL                                               'crypt'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $11     
         13        ASSIGN                                                   !4, $11
   10    14        NOP                                                      
         15        FAST_CONCAT                                      ~13     !3, '%0A'
         16        ECHO                                                     ~13
   11    17        NOP                                                      
         18        FAST_CONCAT                                      ~14     !4, '%0A'
         19        ECHO                                                     ~14
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.65 ms | 1395 KiB | 17 Q