3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $a = md5('4c6e15'); echo "\n"; echo $b = '$md5' . password_hash($a, PASSWORD_DEFAULT); echo "\n"; echo substr($b, 0, 4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tV0sQ
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'md5'
          1        SEND_VAL                                                 '4c6e15'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                           ~3      !0, $2
          4        ECHO                                                     ~3
    4     5        ECHO                                                     '%0A'
    5     6        INIT_FCALL                                               'password_hash'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 '2y'
          9        DO_ICALL                                         $4      
         10        CONCAT                                           ~5      '%24md5', $4
         11        ASSIGN                                           ~6      !1, ~5
         12        ECHO                                                     ~6
    6    13        ECHO                                                     '%0A'
    7    14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 4
         18        DO_ICALL                                         $7      
         19        ECHO                                                     $7
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.52 ms | 1386 KiB | 19 Q