3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Textlocal account details $username = urlencode('youremail@address.com'); $hash = urlencode('Your API hash'); // Get this when logged in at https://control.txtlocal.co.uk/docs/ // Message details $numbers = urlencode(447123456789,447987654321); $sender = urlencode('Textlocal'); $message = urlencode('This is your message'); // Prepare data for POST request $data = 'username=' . $username . '&hash=' . $hash . '&numbers=' . $numbers . "&sender=" . $sender . "&message=" . $message; // Send the GET request with cURL $ch = curl_init('https://api.txtlocal.com/send/?' . $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); // Process your response here echo $response; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o4UA6
function name:  (null)
number of ops:  51
compiled vars:  !0 = $username, !1 = $hash, !2 = $numbers, !3 = $sender, !4 = $message, !5 = $data, !6 = $ch, !7 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'urlencode'
          1        SEND_VAL                                                 'youremail%40address.com'
          2        DO_ICALL                                         $8      
          3        ASSIGN                                                   !0, $8
    4     4        INIT_FCALL                                               'urlencode'
          5        SEND_VAL                                                 'Your+API+hash'
          6        DO_ICALL                                         $10     
          7        ASSIGN                                                   !1, $10
    7     8        INIT_FCALL                                               'urlencode'
          9        SEND_VAL                                                 447123456789
         10        SEND_VAL                                                 447987654321
         11        DO_ICALL                                         $12     
         12        ASSIGN                                                   !2, $12
    8    13        INIT_FCALL                                               'urlencode'
         14        SEND_VAL                                                 'Textlocal'
         15        DO_ICALL                                         $14     
         16        ASSIGN                                                   !3, $14
    9    17        INIT_FCALL                                               'urlencode'
         18        SEND_VAL                                                 'This+is+your+message'
         19        DO_ICALL                                         $16     
         20        ASSIGN                                                   !4, $16
   12    21        CONCAT                                           ~18     'username%3D', !0
         22        CONCAT                                           ~19     ~18, '%26hash%3D'
         23        CONCAT                                           ~20     ~19, !1
   13    24        CONCAT                                           ~21     ~20, '%26numbers%3D'
         25        CONCAT                                           ~22     ~21, !2
         26        CONCAT                                           ~23     ~22, '%26sender%3D'
         27        CONCAT                                           ~24     ~23, !3
         28        CONCAT                                           ~25     ~24, '%26message%3D'
         29        CONCAT                                           ~26     ~25, !4
   12    30        ASSIGN                                                   !5, ~26
   16    31        INIT_FCALL_BY_NAME                                       'curl_init'
         32        CONCAT                                           ~28     'https%3A%2F%2Fapi.txtlocal.com%2Fsend%2F%3F', !5
         33        SEND_VAL_EX                                              ~28
         34        DO_FCALL                                      0  $29     
         35        ASSIGN                                                   !6, $29
   17    36        INIT_FCALL_BY_NAME                                       'curl_setopt'
         37        SEND_VAR_EX                                              !6
         38        FETCH_CONSTANT                                   ~31     'CURLOPT_RETURNTRANSFER'
         39        SEND_VAL_EX                                              ~31
         40        SEND_VAL_EX                                              <true>
         41        DO_FCALL                                      0          
   18    42        INIT_FCALL_BY_NAME                                       'curl_exec'
         43        SEND_VAR_EX                                              !6
         44        DO_FCALL                                      0  $33     
         45        ASSIGN                                                   !7, $33
   19    46        INIT_FCALL_BY_NAME                                       'curl_close'
         47        SEND_VAR_EX                                              !6
         48        DO_FCALL                                      0          
   22    49        ECHO                                                     !7
   23    50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.41 ms | 1400 KiB | 15 Q