3v4l.org

run code in 300+ PHP versions simultaneously
<?php #header('Content-type:application/json;charset=utf-8'); $url = 'http://exotel.in/hacks/exotel-geo/iframe-index.php'; $data = array('mobile_number' => '7266788211'); // use key 'http' even if you send the request to https://... $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data), ), ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); #var_dump($result); # Create a DOM parser object $dom = new DOMDocument(); @$dom->loadHTML($result); #$output = array(); # Iterate over all the <a> tags foreach($dom->getElementsByTagName('h2') as $link) { # Show the <a href> echo $link->nodeValue; echo "<br />"; } #var_dump($result); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 32, Position 2 = 37
Branch analysis from position: 32
2 jumps found. (Code = 78) Position 1 = 33, Position 2 = 37
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/WgdkW
function name:  (null)
number of ops:  39
compiled vars:  !0 = $url, !1 = $data, !2 = $options, !3 = $context, !4 = $result, !5 = $dom, !6 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fexotel.in%2Fhacks%2Fexotel-geo%2Fiframe-index.php'
    6     1        ASSIGN                                                   !1, <array>
   11     2        INIT_ARRAY                                       ~9      'Content-type%3A+application%2Fx-www-form-urlencoded%0D%0A', 'header'
   12     3        ADD_ARRAY_ELEMENT                                ~9      'POST', 'method'
   13     4        INIT_FCALL                                               'http_build_query'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $10     
          7        ADD_ARRAY_ELEMENT                                ~9      $10, 'content'
          8        INIT_ARRAY                                       ~11     ~9, 'http'
    9     9        ASSIGN                                                   !2, ~11
   16    10        INIT_FCALL                                               'stream_context_create'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $13     
         13        ASSIGN                                                   !3, $13
   17    14        INIT_FCALL                                               'file_get_contents'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 <false>
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $15     
         19        ASSIGN                                                   !4, $15
   22    20        NEW                                              $17     'DOMDocument'
         21        DO_FCALL                                      0          
         22        ASSIGN                                                   !5, $17
   23    23        BEGIN_SILENCE                                    ~20     
         24        INIT_METHOD_CALL                                         !5, 'loadHTML'
         25        SEND_VAR_EX                                              !4
         26        DO_FCALL                                      0          
         27        END_SILENCE                                              ~20
   27    28        INIT_METHOD_CALL                                         !5, 'getElementsByTagName'
         29        SEND_VAL_EX                                              'h2'
         30        DO_FCALL                                      0  $22     
         31      > FE_RESET_R                                       $23     $22, ->37
         32    > > FE_FETCH_R                                               $23, !6, ->37
   29    33    >   FETCH_OBJ_R                                      ~24     !6, 'nodeValue'
         34        ECHO                                                     ~24
   30    35        ECHO                                                     '%3Cbr+%2F%3E'
   27    36      > JMP                                                      ->32
         37    >   FE_FREE                                                  $23
   34    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
271.36 ms | 1404 KiB | 20 Q