3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.34 ms | 1395 KiB | 17 Q