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'); $json = str_replace("\n", "", $quote); $data = substr($json, 4, strlen($json) -5); print_r($data); $json_output = json_decode($data, true, JSON_UNESCAPED_UNICODE); print_r($json_output); echo "</br></br>"; echo "\n".$json_output['l']; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/feK2T
function name:  (null)
number of ops:  35
compiled vars:  !0 = $quote, !1 = $json, !2 = $data, !3 = $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                                         $4      
          3        ASSIGN                                                   !0, $4
    3     4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '%0A'
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    4    10        INIT_FCALL                                               'substr'
         11        SEND_VAR                                                 !1
         12        SEND_VAL                                                 4
         13        STRLEN                                           ~8      !1
         14        SUB                                              ~9      ~8, 5
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                         $10     
         17        ASSIGN                                                   !2, $10
    5    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
    6    21        INIT_FCALL                                               'json_decode'
         22        SEND_VAR                                                 !2
         23        SEND_VAL                                                 <true>
         24        SEND_VAL                                                 256
         25        DO_ICALL                                         $13     
         26        ASSIGN                                                   !3, $13
    7    27        INIT_FCALL                                               'print_r'
         28        SEND_VAR                                                 !3
         29        DO_ICALL                                                 
    8    30        ECHO                                                     '%3C%2Fbr%3E%3C%2Fbr%3E'
    9    31        FETCH_DIM_R                                      ~16     !3, 'l'
         32        CONCAT                                           ~17     '%0A', ~16
         33        ECHO                                                     ~17
   10    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.51 ms | 1401 KiB | 23 Q