3v4l.org

run code in 300+ PHP versions simultaneously
<style type="text/css"> <!-- .ifc_ticker { color: #FFF; font-size: 14px; white-space:nowrap; } --> </style> <div class="ifc_ticker"><?php $c = curl_init(); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_HTTPHEADER, array('Accept: application/json', 'Content-Type: application/json')); curl_setopt($c, CURLOPT_URL, 'http://data.bter.com/api/1/ticker/ifc_ltc'); $avg = curl_exec($c); curl_close($c); $obj = json_decode($avg); ?> IFC/LTC <strong>Buy</strong> <?php echo print_r($obj->{'sell'}."\n", true);?></a> <strong>Sell </strong><?php echo print_r($obj->{'buy'}."\n", true);?></a></div>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/egQCo
function name:  (null)
number of ops:  51
compiled vars:  !0 = $c, !1 = $avg, !2 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cstyle+type%3D%22text%2Fcss%22%3E%0A%3C%21--%0A.ifc_ticker+%7B%0A%09color%3A+%23FFF%3B%0A%09font-size%3A+14px%3B%0A%09white-space%3Anowrap%3B%0A%7D%0A--%3E%0A%3C%2Fstyle%3E%0A%0A%3Cdiv+class%3D%22ifc_ticker%22%3E'
   13     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !0, $3
   14     4        INIT_FCALL_BY_NAME                                       'curl_setopt'
          5        SEND_VAR_EX                                              !0
          6        FETCH_CONSTANT                                   ~5      'CURLOPT_RETURNTRANSFER'
          7        SEND_VAL_EX                                              ~5
          8        SEND_VAL_EX                                              1
          9        DO_FCALL                                      0          
   15    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !0
         12        FETCH_CONSTANT                                   ~7      'CURLOPT_HTTPHEADER'
         13        SEND_VAL_EX                                              ~7
         14        SEND_VAL_EX                                              <array>
         15        DO_FCALL                                      0          
   16    16        INIT_FCALL_BY_NAME                                       'curl_setopt'
         17        SEND_VAR_EX                                              !0
         18        FETCH_CONSTANT                                   ~9      'CURLOPT_URL'
         19        SEND_VAL_EX                                              ~9
         20        SEND_VAL_EX                                              'http%3A%2F%2Fdata.bter.com%2Fapi%2F1%2Fticker%2Fifc_ltc'
         21        DO_FCALL                                      0          
   18    22        INIT_FCALL_BY_NAME                                       'curl_exec'
         23        SEND_VAR_EX                                              !0
         24        DO_FCALL                                      0  $11     
         25        ASSIGN                                                   !1, $11
   19    26        INIT_FCALL_BY_NAME                                       'curl_close'
         27        SEND_VAR_EX                                              !0
         28        DO_FCALL                                      0          
   21    29        INIT_FCALL                                               'json_decode'
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                         $14     
         32        ASSIGN                                                   !2, $14
   24    33        ECHO                                                     'IFC%2FLTC+%3Cstrong%3EBuy%3C%2Fstrong%3E+'
         34        INIT_FCALL                                               'print_r'
         35        FETCH_OBJ_R                                      ~16     !2, 'sell'
         36        CONCAT                                           ~17     ~16, '%0A'
         37        SEND_VAL                                                 ~17
         38        SEND_VAL                                                 <true>
         39        DO_ICALL                                         $18     
         40        ECHO                                                     $18
         41        ECHO                                                     '%3C%2Fa%3E+%3Cstrong%3ESell+%3C%2Fstrong%3E'
         42        INIT_FCALL                                               'print_r'
         43        FETCH_OBJ_R                                      ~19     !2, 'buy'
         44        CONCAT                                           ~20     ~19, '%0A'
         45        SEND_VAL                                                 ~20
         46        SEND_VAL                                                 <true>
         47        DO_ICALL                                         $21     
         48        ECHO                                                     $21
         49        ECHO                                                     '%3C%2Fa%3E%3C%2Fdiv%3E'
         50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.47 ms | 1404 KiB | 17 Q