3v4l.org

run code in 300+ PHP versions simultaneously
<?php $address = 'http://iss.moex.com/iss/statistics/engines/futures/markets/indicativerates/securities/USD/RUB.json?from='.date('Y-m-d'); $string = file_get_contents($address); $data = json_encode($string, true); var_dump($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6v5Nm
function name:  (null)
number of ops:  18
compiled vars:  !0 = $address, !1 = $string, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        DO_ICALL                                         $3      
          3        CONCAT                                           ~4      'http%3A%2F%2Fiss.moex.com%2Fiss%2Fstatistics%2Fengines%2Ffutures%2Fmarkets%2Findicativerates%2Fsecurities%2FUSD%2FRUB.json%3Ffrom%3D', $3
          4        ASSIGN                                                   !0, ~4
    3     5        INIT_FCALL                                               'file_get_contents'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    4     9        INIT_FCALL                                               'json_encode'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
    5    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.03 ms | 1399 KiB | 21 Q