3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json_string = file_get_contents("http://api.wunderground.com/api/a4ae759739c92427/forecast/q/UK/Newcastle.json"); $parsed_json = json_decode($json_string); for($i = 0; $i <= 1; $i++) { $day = $parsed_json->{'forecast'}->{'txt_forecast'}->{'forecastday'}->{$i}; return $day->{'title'} . "<br>" . $day->{'fcttext_metric'} . "<br><br>"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 10
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/urI7t
function name:  (null)
number of ops:  25
compiled vars:  !0 = $json_string, !1 = $parsed_json, !2 = $i, !3 = $day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fapi.wunderground.com%2Fapi%2Fa4ae759739c92427%2Fforecast%2Fq%2FUK%2FNewcastle.json'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    5     4        INIT_FCALL                                               'json_decode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    7     8        ASSIGN                                                   !2, 0
          9      > JMP                                                      ->22
    9    10    >   FETCH_OBJ_R                                      ~9      !1, 'forecast'
         11        FETCH_OBJ_R                                      ~10     ~9, 'txt_forecast'
         12        FETCH_OBJ_R                                      ~11     ~10, 'forecastday'
         13        FETCH_OBJ_R                                      ~12     ~11, !2
         14        ASSIGN                                                   !3, ~12
   11    15        FETCH_OBJ_R                                      ~14     !3, 'title'
         16        CONCAT                                           ~15     ~14, '%3Cbr%3E'
         17        FETCH_OBJ_R                                      ~16     !3, 'fcttext_metric'
         18        CONCAT                                           ~17     ~15, ~16
         19        CONCAT                                           ~18     ~17, '%3Cbr%3E%3Cbr%3E'
         20      > RETURN                                                   ~18
    7    21*       PRE_INC                                                  !2
         22    >   IS_SMALLER_OR_EQUAL                                      !2, 1
         23      > JMPNZ                                                    ~20, ->10
   13    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.84 ms | 940 KiB | 18 Q