3v4l.org

run code in 300+ PHP versions simultaneously
<?php //this reads 3hr PSI RSS feed from NEA $Output_3hr = ""; $url_3hr = "http://wip.weather.gov.sg/wip/pp/rndops/web/rss/rssHeavyRain_new.xml"; $xml_3hr = simplexml_load_file($url_3hr); for($i=0; $i<10; $i++){ $value_3hr = $xml_3hr->rss->channel->item[$i]->psi; $Output_3hr .= "<p>$value_3hr</p>"; } echo $Output_3hr; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
Branch analysis from position: 8
filename:       /in/5ocaR
function name:  (null)
number of ops:  23
compiled vars:  !0 = $Output_3hr, !1 = $url_3hr, !2 = $xml_3hr, !3 = $i, !4 = $value_3hr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    3     1        ASSIGN                                                   !1, 'http%3A%2F%2Fwip.weather.gov.sg%2Fwip%2Fpp%2Frndops%2Fweb%2Frss%2FrssHeavyRain_new.xml'
    4     2        INIT_FCALL                                               'simplexml_load_file'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !2, $7
    5     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->19
    6     8    >   FETCH_OBJ_R                                      ~10     !2, 'rss'
          9        FETCH_OBJ_R                                      ~11     ~10, 'channel'
         10        FETCH_OBJ_R                                      ~12     ~11, 'item'
         11        FETCH_DIM_R                                      ~13     ~12, !3
         12        FETCH_OBJ_R                                      ~14     ~13, 'psi'
         13        ASSIGN                                                   !4, ~14
    7    14        ROPE_INIT                                     3  ~17     '%3Cp%3E'
         15        ROPE_ADD                                      1  ~17     ~17, !4
         16        ROPE_END                                      2  ~16     ~17, '%3C%2Fp%3E'
         17        ASSIGN_OP                                     8          !0, ~16
    5    18        PRE_INC                                                  !3
         19    >   IS_SMALLER                                               !3, 10
         20      > JMPNZ                                                    ~21, ->8
    9    21    >   ECHO                                                     !0
   10    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.27 ms | 1395 KiB | 15 Q