3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mainurl = "http://www.xmlsoccer.com/FootballDataDemo.asmx/"; $method = "GetAllTeamsByLeagueAndSeason"; $apikey = "GMUIGPJPDSGYEKACQPVPQMPMBQVZUEHNHJFJTVVISPDOXYOOEG"; $league = "Scottish+Premiere+league"; $season = "1314"; $endurl = $mainurl . $method . "?Apikey=" . $apikey . "&league=" . $league . "&seasonDateString=" . $season; $xml = simplexml_load_file($endurl); print_r($endurl); //print_r($xml); foreach($xml->Team as $team) { echo $team->name; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 26
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/ojB2I
function name:  (null)
number of ops:  28
compiled vars:  !0 = $mainurl, !1 = $method, !2 = $apikey, !3 = $league, !4 = $season, !5 = $endurl, !6 = $xml, !7 = $team
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.xmlsoccer.com%2FFootballDataDemo.asmx%2F'
    3     1        ASSIGN                                                   !1, 'GetAllTeamsByLeagueAndSeason'
    4     2        ASSIGN                                                   !2, 'GMUIGPJPDSGYEKACQPVPQMPMBQVZUEHNHJFJTVVISPDOXYOOEG'
    5     3        ASSIGN                                                   !3, 'Scottish%2BPremiere%2Bleague'
    6     4        ASSIGN                                                   !4, '1314'
    8     5        CONCAT                                           ~13     !0, !1
          6        CONCAT                                           ~14     ~13, '%3FApikey%3D'
          7        CONCAT                                           ~15     ~14, !2
          8        CONCAT                                           ~16     ~15, '%26league%3D'
          9        CONCAT                                           ~17     ~16, !3
         10        CONCAT                                           ~18     ~17, '%26seasonDateString%3D'
         11        CONCAT                                           ~19     ~18, !4
         12        ASSIGN                                                   !5, ~19
    9    13        INIT_FCALL                                               'simplexml_load_file'
         14        SEND_VAR                                                 !5
         15        DO_ICALL                                         $21     
         16        ASSIGN                                                   !6, $21
   10    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !5
         19        DO_ICALL                                                 
   13    20        FETCH_OBJ_R                                      ~24     !6, 'Team'
         21      > FE_RESET_R                                       $25     ~24, ->26
         22    > > FE_FETCH_R                                               $25, !7, ->26
   14    23    >   FETCH_OBJ_R                                      ~26     !7, 'name'
         24        ECHO                                                     ~26
   13    25      > JMP                                                      ->22
         26    >   FE_FREE                                                  $25
   15    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.72 ms | 1396 KiB | 17 Q