3v4l.org

run code in 300+ PHP versions simultaneously
<?php $decodedData = json_decode(file_get_contents("https://onionoo.torproject.org/bandwidth?search=loki1", true)); $relays = $decodedData['relays']; $firstRelay = reset($relays); $writeHistoryValues = $firstRelay['write_history']['3_days']['values']; var_dump($writeHistoryValues);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rNnah
function name:  (null)
number of ops:  22
compiled vars:  !0 = $decodedData, !1 = $relays, !2 = $firstRelay, !3 = $writeHistoryValues
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAL                                                 'https%3A%2F%2Fonionoo.torproject.org%2Fbandwidth%3Fsearch%3Dloki1'
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !0, $5
    5     8        FETCH_DIM_R                                      ~7      !0, 'relays'
          9        ASSIGN                                                   !1, ~7
    7    10        INIT_FCALL                                               'reset'
         11        SEND_REF                                                 !1
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
    9    14        FETCH_DIM_R                                      ~11     !2, 'write_history'
         15        FETCH_DIM_R                                      ~12     ~11, '3_days'
         16        FETCH_DIM_R                                      ~13     ~12, 'values'
         17        ASSIGN                                                   !3, ~13
   11    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.01 ms | 1395 KiB | 21 Q