3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = $password = 'test'; $options = array( 'ssl' => array( 'ciphers' => 'RC4-SHA', 'verify_peer' => false, 'verify_peer_name' => false ) ); if (!empty($username) && !empty($password) ) { $options['http'] = array( 'header' => 'Authorization: Basic ' . base64_encode($username.':'.$password) ); } var_dump($options);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 9
filename:       /in/LnA3q
function name:  (null)
number of ops:  23
compiled vars:  !0 = $username, !1 = $password, !2 = $options
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                           ~3      !1, 'test'
          1        ASSIGN                                                   !0, ~3
    3     2        ASSIGN                                                   !2, <array>
   11     3        ISSET_ISEMPTY_CV                                 ~6      !0
          4        BOOL_NOT                                         ~7      ~6
          5      > JMPZ_EX                                          ~7      ~7, ->9
   12     6    >   ISSET_ISEMPTY_CV                                 ~8      !1
          7        BOOL_NOT                                         ~9      ~8
          8        BOOL                                             ~7      ~9
          9    > > JMPZ                                                     ~7, ->19
   15    10    >   INIT_FCALL                                               'base64_encode'
         11        CONCAT                                           ~11     !0, '%3A'
         12        CONCAT                                           ~12     ~11, !1
         13        SEND_VAL                                                 ~12
         14        DO_ICALL                                         $13     
         15        CONCAT                                           ~14     'Authorization%3A+Basic+', $13
         16        INIT_ARRAY                                       ~15     ~14, 'header'
   14    17        ASSIGN_DIM                                               !2, 'http'
   15    18        OP_DATA                                                  ~15
   19    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.45 ms | 1400 KiB | 17 Q