3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = file_get_contents('http://data.bter.com/api/1/ticker/doge_btc'); $array = json_decode($url,true); foreach($array as $temp_array){ echo $temp_array['last']; echo "<br>"; echo $temp_array['high']; echo "<br>"; echo $temp_array['low']; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 20
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/PAi28
function name:  (null)
number of ops:  22
compiled vars:  !0 = $url, !1 = $array, !2 = $temp_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fdata.bter.com%2Fapi%2F1%2Fticker%2Fdoge_btc'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'json_decode'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    4     9      > FE_RESET_R                                       $7      !1, ->20
         10    > > FE_FETCH_R                                               $7, !2, ->20
    5    11    >   FETCH_DIM_R                                      ~8      !2, 'last'
         12        ECHO                                                     ~8
    6    13        ECHO                                                     '%3Cbr%3E'
    7    14        FETCH_DIM_R                                      ~9      !2, 'high'
         15        ECHO                                                     ~9
    8    16        ECHO                                                     '%3Cbr%3E'
    9    17        FETCH_DIM_R                                      ~10     !2, 'low'
         18        ECHO                                                     ~10
    4    19      > JMP                                                      ->10
         20    >   FE_FREE                                                  $7
   11    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.49 ms | 1395 KiB | 17 Q