3v4l.org

run code in 300+ PHP versions simultaneously
<?php $quote = file_get_contents('http://finance.google.com/finance/info?client=ig&q=VSE:APG1L'); $quote = utf8_decode($quote); $json = substr($quote, 3); $json_output = json_decode($json, true); print_r($json_output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OGgJW
function name:  (null)
number of ops:  22
compiled vars:  !0 = $quote, !1 = $json, !2 = $json_output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Ffinance.google.com%2Ffinance%2Finfo%3Fclient%3Dig%26q%3DVSE%3AAPG1L'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'utf8_decode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !0, $5
    4     8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 3
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !1, $7
    5    13        INIT_FCALL                                               'json_decode'
         14        SEND_VAR                                                 !1
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !2, $9
    6    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.93 ms | 1395 KiB | 23 Q