3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = new HttpRequest('http://example.com/feed.rss', HttpRequest::METH_GET); $r->setOptions(array('lastmodified' => filemtime('local.rss'))); $r->addQueryData(array('category' => 3)); try { $r->send(); if ($r->getResponseCode() == 200) { file_put_contents('local.rss', $r->getResponseBody()); } } catch (HttpException $ex) { echo $ex; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 28
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Found catch point at position: 29
Branch analysis from position: 29
2 jumps found. (Code = 107) Position 1 = 30, Position 2 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DWAbN
function name:  (null)
number of ops:  32
compiled vars:  !0 = $r, !1 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'HttpRequest'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fexample.com%2Ffeed.rss'
          2        FETCH_CLASS_CONSTANT                             ~3      'HttpRequest', 'METH_GET'
          3        SEND_VAL_EX                                              ~3
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    3     6        INIT_METHOD_CALL                                         !0, 'setOptions'
          7        INIT_FCALL                                               'filemtime'
          8        SEND_VAL                                                 'local.rss'
          9        DO_ICALL                                         $6      
         10        INIT_ARRAY                                       ~7      $6, 'lastmodified'
         11        SEND_VAL_EX                                              ~7
         12        DO_FCALL                                      0          
    4    13        INIT_METHOD_CALL                                         !0, 'addQueryData'
         14        SEND_VAL_EX                                              <array>
         15        DO_FCALL                                      0          
    6    16        INIT_METHOD_CALL                                         !0, 'send'
         17        DO_FCALL                                      0          
    7    18        INIT_METHOD_CALL                                         !0, 'getResponseCode'
         19        DO_FCALL                                      0  $11     
         20        IS_EQUAL                                                 $11, 200
         21      > JMPZ                                                     ~12, ->28
    8    22    >   INIT_FCALL                                               'file_put_contents'
         23        SEND_VAL                                                 'local.rss'
         24        INIT_METHOD_CALL                                         !0, 'getResponseBody'
         25        DO_FCALL                                      0  $13     
         26        SEND_VAR                                                 $13
         27        DO_ICALL                                                 
         28    > > JMP                                                      ->31
   10    29  E > > CATCH                                       last         'HttpException'
   11    30    >   ECHO                                                     !1
   13    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.14 ms | 1401 KiB | 17 Q