3v4l.org

run code in 300+ PHP versions simultaneously
<?php //der blöden Seite die blöden Infos entlocken!! $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://www.example.com/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_POSTFIELDS, "alpha_slots=true&chart=day&fans=true&funds=true"); curl_setopt($ch, CURLOPT_REFERER, "https://robertsspaceindustries.com/api/stats/getCrowdfundStats"); $json=curl_exec($ch); curl_close($ch); //aus dummem JSON tolle Arrays machen =) $array=json_decode($json, true); $array=$array["data"]; echo "fans:".$array["fans"].", funds:".$array["funds"].", alpha_slots_left:".$array["alpha_slots_left"]." =)"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ugl4Q
function name:  (null)
number of ops:  58
compiled vars:  !0 = $ch, !1 = $json, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'curl_init'
          1        DO_FCALL                                      0  $3      
          2        ASSIGN                                                   !0, $3
    5     3        INIT_FCALL_BY_NAME                                       'curl_setopt'
          4        SEND_VAR_EX                                              !0
          5        FETCH_CONSTANT                                   ~5      'CURLOPT_URL'
          6        SEND_VAL_EX                                              ~5
          7        SEND_VAL_EX                                              'http%3A%2F%2Fwww.example.com%2F'
          8        DO_FCALL                                      0          
    6     9        INIT_FCALL_BY_NAME                                       'curl_setopt'
         10        SEND_VAR_EX                                              !0
         11        FETCH_CONSTANT                                   ~7      'CURLOPT_RETURNTRANSFER'
         12        SEND_VAL_EX                                              ~7
         13        SEND_VAL_EX                                              <true>
         14        DO_FCALL                                      0          
    7    15        INIT_FCALL_BY_NAME                                       'curl_setopt'
         16        SEND_VAR_EX                                              !0
         17        FETCH_CONSTANT                                   ~9      'CURLOPT_HEADER'
         18        SEND_VAL_EX                                              ~9
         19        SEND_VAL_EX                                              <false>
         20        DO_FCALL                                      0          
    8    21        INIT_FCALL_BY_NAME                                       'curl_setopt'
         22        SEND_VAR_EX                                              !0
         23        FETCH_CONSTANT                                   ~11     'CURLOPT_POSTFIELDS'
         24        SEND_VAL_EX                                              ~11
         25        SEND_VAL_EX                                              'alpha_slots%3Dtrue%26chart%3Dday%26fans%3Dtrue%26funds%3Dtrue'
         26        DO_FCALL                                      0          
    9    27        INIT_FCALL_BY_NAME                                       'curl_setopt'
         28        SEND_VAR_EX                                              !0
         29        FETCH_CONSTANT                                   ~13     'CURLOPT_REFERER'
         30        SEND_VAL_EX                                              ~13
         31        SEND_VAL_EX                                              'https%3A%2F%2Frobertsspaceindustries.com%2Fapi%2Fstats%2FgetCrowdfundStats'
         32        DO_FCALL                                      0          
   10    33        INIT_FCALL_BY_NAME                                       'curl_exec'
         34        SEND_VAR_EX                                              !0
         35        DO_FCALL                                      0  $15     
         36        ASSIGN                                                   !1, $15
   11    37        INIT_FCALL_BY_NAME                                       'curl_close'
         38        SEND_VAR_EX                                              !0
         39        DO_FCALL                                      0          
   15    40        INIT_FCALL                                               'json_decode'
         41        SEND_VAR                                                 !1
         42        SEND_VAL                                                 <true>
         43        DO_ICALL                                         $18     
         44        ASSIGN                                                   !2, $18
   16    45        FETCH_DIM_R                                      ~20     !2, 'data'
         46        ASSIGN                                                   !2, ~20
   18    47        FETCH_DIM_R                                      ~22     !2, 'fans'
         48        CONCAT                                           ~23     'fans%3A', ~22
         49        CONCAT                                           ~24     ~23, '%2C+funds%3A'
         50        FETCH_DIM_R                                      ~25     !2, 'funds'
         51        CONCAT                                           ~26     ~24, ~25
         52        CONCAT                                           ~27     ~26, '%2C+alpha_slots_left%3A'
         53        FETCH_DIM_R                                      ~28     !2, 'alpha_slots_left'
         54        CONCAT                                           ~29     ~27, ~28
         55        CONCAT                                           ~30     ~29, '+%3D%29'
         56        ECHO                                                     ~30
   20    57      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.67 ms | 1400 KiB | 15 Q