3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'password'; $hashed = false; $password = !$hashed ? $password : md5($password); echo $password;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oNTsq
function name:  (null)
number of ops:  13
compiled vars:  !0 = $password, !1 = $hashed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'password'
    4     1        ASSIGN                                                   !1, <false>
    6     2        BOOL_NOT                                         ~4      !1
          3      > JMPZ                                                     ~4, ->6
          4    >   QM_ASSIGN                                        ~5      !0
          5      > JMP                                                      ->10
          6    >   INIT_FCALL                                               'md5'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        QM_ASSIGN                                        ~5      $6
         10    >   ASSIGN                                                   !0, ~5
    8    11        ECHO                                                     !0
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.99 ms | 1394 KiB | 15 Q