3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curlSettings[CURLOPT_HTTPAUTH] = CURLAUTH_BASIC; $curlSettings[CURLOPT_USERPWD] = '1testuser' . ':' . 'pass;word'; $curl = curl_init('http://www.phpgangsta.de/download/curl_auth_test.php'); curl_setopt_array($curl, $curlSettings); curl_exec($curl);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7BT3Q
function name:  (null)
number of ops:  19
compiled vars:  !0 = $curlSettings, !1 = $curl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~2      'CURLOPT_HTTPAUTH'
          1        FETCH_CONSTANT                                   ~4      'CURLAUTH_BASIC'
          2        ASSIGN_DIM                                               !0, ~2
          3        OP_DATA                                                  ~4
    4     4        FETCH_CONSTANT                                   ~5      'CURLOPT_USERPWD'
          5        ASSIGN_DIM                                               !0, ~5
          6        OP_DATA                                                  '1testuser%3Apass%3Bword'
    6     7        INIT_FCALL_BY_NAME                                       'curl_init'
          8        SEND_VAL_EX                                              'http%3A%2F%2Fwww.phpgangsta.de%2Fdownload%2Fcurl_auth_test.php'
          9        DO_FCALL                                      0  $7      
         10        ASSIGN                                                   !1, $7
    7    11        INIT_FCALL_BY_NAME                                       'curl_setopt_array'
         12        SEND_VAR_EX                                              !1
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0          
    9    15        INIT_FCALL_BY_NAME                                       'curl_exec'
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.55 ms | 1394 KiB | 13 Q