3v4l.org

run code in 300+ PHP versions simultaneously
<?php $panel_url = 'http://world-stream.co:8000'; $username = 'rahul'; $password = 'raval'; $max_connections = 10; $reseller = 1; $expire_date = strtotime( "+12 month" ); //from the time now, not from line's expire date. ############################################################################### $post_data = array( 'username' => $username, 'password' => $password, 'user_data' => array( 'max_connections' => $max_connections, 'is_restreamer' => $reseller, 'exp_date' => $expire_date ) ); $opts = array( 'http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => http_build_query( $post_data ) ) ); print "$opts"; $context = stream_context_create( $opts ); $api_result = json_decode( file_get_contents( $panel_url . "api.php?action=user&sub=edit", false, $context ) ); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qCOAC
function name:  (null)
number of ops:  41
compiled vars:  !0 = $panel_url, !1 = $username, !2 = $password, !3 = $max_connections, !4 = $reseller, !5 = $expire_date, !6 = $post_data, !7 = $opts, !8 = $context, !9 = $api_result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fworld-stream.co%3A8000'
    4     1        ASSIGN                                                   !1, 'rahul'
    5     2        ASSIGN                                                   !2, 'raval'
    6     3        ASSIGN                                                   !3, 10
    7     4        ASSIGN                                                   !4, 1
    8     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 '%2B12+month'
          7        DO_ICALL                                         $15     
          8        ASSIGN                                                   !5, $15
   12     9        INIT_ARRAY                                       ~17     !1, 'username'
   13    10        ADD_ARRAY_ELEMENT                                ~17     !2, 'password'
   15    11        INIT_ARRAY                                       ~18     !3, 'max_connections'
   16    12        ADD_ARRAY_ELEMENT                                ~18     !4, 'is_restreamer'
   17    13        ADD_ARRAY_ELEMENT                                ~18     !5, 'exp_date'
         14        ADD_ARRAY_ELEMENT                                ~17     ~18, 'user_data'
   11    15        ASSIGN                                                   !6, ~17
   20    16        INIT_ARRAY                                       ~20     'POST', 'method'
   21    17        ADD_ARRAY_ELEMENT                                ~20     'Content-type%3A+application%2Fx-www-form-urlencoded', 'header'
   22    18        INIT_FCALL                                               'http_build_query'
         19        SEND_VAR                                                 !6
         20        DO_ICALL                                         $21     
         21        ADD_ARRAY_ELEMENT                                ~20     $21, 'content'
         22        INIT_ARRAY                                       ~22     ~20, 'http'
   19    23        ASSIGN                                                   !7, ~22
   23    24        CAST                                          6  ~24     !7
         25        ECHO                                                     ~24
   24    26        INIT_FCALL                                               'stream_context_create'
         27        SEND_VAR                                                 !7
         28        DO_ICALL                                         $25     
         29        ASSIGN                                                   !8, $25
   25    30        INIT_FCALL                                               'json_decode'
         31        INIT_FCALL                                               'file_get_contents'
         32        CONCAT                                           ~27     !0, 'api.php%3Faction%3Duser%26sub%3Dedit'
         33        SEND_VAL                                                 ~27
         34        SEND_VAL                                                 <false>
         35        SEND_VAR                                                 !8
         36        DO_ICALL                                         $28     
         37        SEND_VAR                                                 $28
         38        DO_ICALL                                         $29     
         39        ASSIGN                                                   !9, $29
   27    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.32 ms | 1400 KiB | 23 Q