3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = file_get_contents("https://sitehawk.fogbugz.com/api.asp?token=uhmenccs8r3jpdku5jnihqfu0g4ua1&cmd=listFixFors&ixProject=4"); $xml = new DOMDocument(); $xml->loadXML($response); //$thexml = $xml->getElementsByTagName('area'); $milestone = $xml->getElementsByTagName('fixfor'); $counter = 0; foreach($milestone as $mile){ $counter++; } $i = 0; foreach($milestone as $mile){ $idFixfor = $mile->getElementsByTagName('ixFixFor'); $sFixfor = $mile->getElementsByTagName('sFixFor'); $sFixfordt = $mile->getElementsByTagName('dt'); if($i != $counter-1) { echo $idFixfor->item(0)->nodeValue . '/' . $sFixfor->item(0)->nodeValue . ': ' . date( substr($sFixfordt->item(0)->nodeValue, 0, 10)) . ','; } else { echo $idFixfor->item(0)->nodeValue . '/' . $sFixfor->item(0)->nodeValue . ': ' . date( substr($sFixfordt->item(0)->nodeValue, 0, 10))->format('m-d-Y'); } $i++; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 19
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 95
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 95
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 65
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 93
Branch analysis from position: 93
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 65
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 95
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 95
Branch analysis from position: 19
filename:       /in/fVJAq
function name:  (null)
number of ops:  97
compiled vars:  !0 = $response, !1 = $xml, !2 = $milestone, !3 = $counter, !4 = $mile, !5 = $i, !6 = $idFixfor, !7 = $sFixfor, !8 = $sFixfordt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'https%3A%2F%2Fsitehawk.fogbugz.com%2Fapi.asp%3Ftoken%3Duhmenccs8r3jpdku5jnihqfu0g4ua1%26cmd%3DlistFixFors%26ixProject%3D4'
          2        DO_ICALL                                         $9      
          3        ASSIGN                                                   !0, $9
    4     4        NEW                                              $11     'DOMDocument'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $11
    6     7        INIT_METHOD_CALL                                         !1, 'loadXML'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
    8    10        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
         11        SEND_VAL_EX                                              'fixfor'
         12        DO_FCALL                                      0  $15     
         13        ASSIGN                                                   !2, $15
    9    14        ASSIGN                                                   !3, 0
   10    15      > FE_RESET_R                                       $18     !2, ->19
         16    > > FE_FETCH_R                                               $18, !4, ->19
   11    17    >   PRE_INC                                                  !3
   10    18      > JMP                                                      ->16
         19    >   FE_FREE                                                  $18
   13    20        ASSIGN                                                   !5, 0
   14    21      > FE_RESET_R                                       $21     !2, ->95
         22    > > FE_FETCH_R                                               $21, !4, ->95
   15    23    >   INIT_METHOD_CALL                                         !4, 'getElementsByTagName'
         24        SEND_VAL_EX                                              'ixFixFor'
         25        DO_FCALL                                      0  $22     
         26        ASSIGN                                                   !6, $22
   16    27        INIT_METHOD_CALL                                         !4, 'getElementsByTagName'
         28        SEND_VAL_EX                                              'sFixFor'
         29        DO_FCALL                                      0  $24     
         30        ASSIGN                                                   !7, $24
   17    31        INIT_METHOD_CALL                                         !4, 'getElementsByTagName'
         32        SEND_VAL_EX                                              'dt'
         33        DO_FCALL                                      0  $26     
         34        ASSIGN                                                   !8, $26
   18    35        SUB                                              ~28     !3, 1
         36        IS_NOT_EQUAL                                             !5, ~28
         37      > JMPZ                                                     ~29, ->65
   20    38    >   INIT_METHOD_CALL                                         !6, 'item'
         39        SEND_VAL_EX                                              0
         40        DO_FCALL                                      0  $30     
         41        FETCH_OBJ_R                                      ~31     $30, 'nodeValue'
         42        CONCAT                                           ~32     ~31, '%2F'
         43        INIT_METHOD_CALL                                         !7, 'item'
         44        SEND_VAL_EX                                              0
         45        DO_FCALL                                      0  $33     
         46        FETCH_OBJ_R                                      ~34     $33, 'nodeValue'
         47        CONCAT                                           ~35     ~32, ~34
         48        CONCAT                                           ~36     ~35, '%3A+'
         49        INIT_FCALL                                               'date'
         50        INIT_FCALL                                               'substr'
         51        INIT_METHOD_CALL                                         !8, 'item'
         52        SEND_VAL_EX                                              0
         53        DO_FCALL                                      0  $37     
         54        FETCH_OBJ_R                                      ~38     $37, 'nodeValue'
         55        SEND_VAL                                                 ~38
         56        SEND_VAL                                                 0
         57        SEND_VAL                                                 10
         58        DO_ICALL                                         $39     
         59        SEND_VAR                                                 $39
         60        DO_ICALL                                         $40     
         61        CONCAT                                           ~41     ~36, $40
         62        CONCAT                                           ~42     ~41, '%2C'
         63        ECHO                                                     ~42
         64      > JMP                                                      ->93
   24    65    >   INIT_METHOD_CALL                                         !6, 'item'
         66        SEND_VAL_EX                                              0
         67        DO_FCALL                                      0  $43     
         68        FETCH_OBJ_R                                      ~44     $43, 'nodeValue'
         69        CONCAT                                           ~45     ~44, '%2F'
         70        INIT_METHOD_CALL                                         !7, 'item'
         71        SEND_VAL_EX                                              0
         72        DO_FCALL                                      0  $46     
         73        FETCH_OBJ_R                                      ~47     $46, 'nodeValue'
         74        CONCAT                                           ~48     ~45, ~47
         75        CONCAT                                           ~49     ~48, '%3A+'
         76        INIT_FCALL                                               'date'
         77        INIT_FCALL                                               'substr'
         78        INIT_METHOD_CALL                                         !8, 'item'
         79        SEND_VAL_EX                                              0
         80        DO_FCALL                                      0  $50     
         81        FETCH_OBJ_R                                      ~51     $50, 'nodeValue'
         82        SEND_VAL                                                 ~51
         83        SEND_VAL                                                 0
         84        SEND_VAL                                                 10
         85        DO_ICALL                                         $52     
         86        SEND_VAR                                                 $52
         87        DO_ICALL                                         $53     
         88        INIT_METHOD_CALL                                         $53, 'format'
         89        SEND_VAL_EX                                              'm-d-Y'
         90        DO_FCALL                                      0  $54     
         91        CONCAT                                           ~55     ~49, $54
         92        ECHO                                                     ~55
   26    93    >   PRE_INC                                                  !5
   14    94      > JMP                                                      ->22
         95    >   FE_FREE                                                  $21
   27    96      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.65 ms | 1396 KiB | 19 Q