3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key_size = 25; $key = ''; for ($i = 0; $i < $key_size; $i++) { $key.= chr(mt_rand(0, 255)); } $a = openssl_encrypt(str_repeat('z', 50), 'rc4-40', $key, OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING); $b = openssl_encrypt(str_repeat('z', 50), 'rc4', $key, OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING); echo $a == $b ? 'good' : 'bad';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 4
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 47
Branch analysis from position: 45
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 4
Branch analysis from position: 15
Branch analysis from position: 4
filename:       /in/7n0VC
function name:  (null)
number of ops:  50
compiled vars:  !0 = $key_size, !1 = $key, !2 = $i, !3 = $a, !4 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 25
    3     1        ASSIGN                                                   !1, ''
    4     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->13
    5     4    >   INIT_FCALL                                               'chr'
          5        INIT_FCALL                                               'mt_rand'
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 255
          8        DO_ICALL                                         $8      
          9        SEND_VAR                                                 $8
         10        DO_ICALL                                         $9      
         11        ASSIGN_OP                                     8          !1, $9
    4    12        PRE_INC                                                  !2
         13    >   IS_SMALLER                                               !2, !0
         14      > JMPNZ                                                    ~12, ->4
    8    15    >   INIT_FCALL_BY_NAME                                       'openssl_encrypt'
         16        INIT_FCALL                                               'str_repeat'
         17        SEND_VAL                                                 'z'
         18        SEND_VAL                                                 50
         19        DO_ICALL                                         $13     
         20        SEND_VAR_NO_REF_EX                                       $13
         21        SEND_VAL_EX                                              'rc4-40'
         22        SEND_VAR_EX                                              !1
         23        FETCH_CONSTANT                                   ~14     'OPENSSL_RAW_DATA'
         24        FETCH_CONSTANT                                   ~15     'OPENSSL_ZERO_PADDING'
         25        BW_OR                                            ~16     ~14, ~15
         26        SEND_VAL_EX                                              ~16
         27        DO_FCALL                                      0  $17     
         28        ASSIGN                                                   !3, $17
    9    29        INIT_FCALL_BY_NAME                                       'openssl_encrypt'
         30        INIT_FCALL                                               'str_repeat'
         31        SEND_VAL                                                 'z'
         32        SEND_VAL                                                 50
         33        DO_ICALL                                         $19     
         34        SEND_VAR_NO_REF_EX                                       $19
         35        SEND_VAL_EX                                              'rc4'
         36        SEND_VAR_EX                                              !1
         37        FETCH_CONSTANT                                   ~20     'OPENSSL_RAW_DATA'
         38        FETCH_CONSTANT                                   ~21     'OPENSSL_ZERO_PADDING'
         39        BW_OR                                            ~22     ~20, ~21
         40        SEND_VAL_EX                                              ~22
         41        DO_FCALL                                      0  $23     
         42        ASSIGN                                                   !4, $23
   11    43        IS_EQUAL                                                 !3, !4
         44      > JMPZ                                                     ~25, ->47
         45    >   QM_ASSIGN                                        ~26     'good'
         46      > JMP                                                      ->48
         47    >   QM_ASSIGN                                        ~26     'bad'
         48    >   ECHO                                                     ~26
         49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.61 ms | 1400 KiB | 19 Q