3v4l.org

run code in 300+ PHP versions simultaneously
<?php $u = "test@mail.com"; $p = "******************"; $fields = array("user[email_address]" => $u, "user[password]" => $p); $ch = curl_init(); //Set curl options $options = array( CURLOPT_URL => "https://secure.izettle.com/portal/login", CURLOPT_COOKIEJAR => "cookie.txt", CURLOPT_COOKIEFILE => "cookie.txt", CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $fields ); curl_setopt_array($ch, $options); curl_exec($ch); curl_setopt($ch, CURLOPT_URL, "https://secure.izettle.com/portal/reports?date=2014-05-21"); $page = curl_exec($ch); echo $page.'<br>'; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u1W8X
function name:  (null)
number of ops:  41
compiled vars:  !0 = $u, !1 = $p, !2 = $fields, !3 = $ch, !4 = $options, !5 = $page
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'test%40mail.com'
    3     1        ASSIGN                                                   !1, '%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A'
    5     2        INIT_ARRAY                                       ~8      !0, 'user%5Bemail_address%5D'
          3        ADD_ARRAY_ELEMENT                                ~8      !1, 'user%5Bpassword%5D'
          4        ASSIGN                                                   !2, ~8
    6     5        INIT_FCALL_BY_NAME                                       'curl_init'
          6        DO_FCALL                                      0  $10     
          7        ASSIGN                                                   !3, $10
   10     8        FETCH_CONSTANT                                   ~12     'CURLOPT_URL'
          9        INIT_ARRAY                                       ~13     'https%3A%2F%2Fsecure.izettle.com%2Fportal%2Flogin', ~12
   11    10        FETCH_CONSTANT                                   ~14     'CURLOPT_COOKIEJAR'
         11        ADD_ARRAY_ELEMENT                                ~13     'cookie.txt', ~14
   12    12        FETCH_CONSTANT                                   ~15     'CURLOPT_COOKIEFILE'
         13        ADD_ARRAY_ELEMENT                                ~13     'cookie.txt', ~15
   13    14        FETCH_CONSTANT                                   ~16     'CURLOPT_RETURNTRANSFER'
   10    15        ADD_ARRAY_ELEMENT                                ~13     <true>, ~16
   14    16        FETCH_CONSTANT                                   ~17     'CURLOPT_POST'
   10    17        ADD_ARRAY_ELEMENT                                ~13     <true>, ~17
   15    18        FETCH_CONSTANT                                   ~18     'CURLOPT_POSTFIELDS'
         19        ADD_ARRAY_ELEMENT                                ~13     !2, ~18
    9    20        ASSIGN                                                   !4, ~13
   18    21        INIT_FCALL_BY_NAME                                       'curl_setopt_array'
         22        SEND_VAR_EX                                              !3
         23        SEND_VAR_EX                                              !4
         24        DO_FCALL                                      0          
   19    25        INIT_FCALL_BY_NAME                                       'curl_exec'
         26        SEND_VAR_EX                                              !3
         27        DO_FCALL                                      0          
   20    28        INIT_FCALL_BY_NAME                                       'curl_setopt'
         29        SEND_VAR_EX                                              !3
         30        FETCH_CONSTANT                                   ~22     'CURLOPT_URL'
         31        SEND_VAL_EX                                              ~22
         32        SEND_VAL_EX                                              'https%3A%2F%2Fsecure.izettle.com%2Fportal%2Freports%3Fdate%3D2014-05-21'
         33        DO_FCALL                                      0          
   21    34        INIT_FCALL_BY_NAME                                       'curl_exec'
         35        SEND_VAR_EX                                              !3
         36        DO_FCALL                                      0  $24     
         37        ASSIGN                                                   !5, $24
   22    38        CONCAT                                           ~26     !5, '%3Cbr%3E'
         39        ECHO                                                     ~26
   23    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.94 ms | 1399 KiB | 13 Q