3v4l.org

run code in 500+ PHP versions simultaneously
<?php $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"Content-Type: application/json en\r\n" . "AuthorizationToken: tJKlYcpVPZ+W3yPOeuAZEg==\r\n" ) ); $response = file_get_contents("http://websiteapi.egorealestate.com/v1/properties", false, stream_context_create($opts)); $obj = json_decode($response, true); foreach ($obj as $row); echo $response; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/EOjWl
function name:  (null)
number of ops:  21
compiled vars:  !0 = $opts, !1 = $response, !2 = $obj, !3 = $row
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   10     1        INIT_FCALL                                                   'file_get_contents'
          2        SEND_VAL                                                     'http%3A%2F%2Fwebsiteapi.egorealestate.com%2Fv1%2Fproperties'
          3        SEND_VAL                                                     <false>
          4        INIT_FCALL                                                   'stream_context_create'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                             $5      
          7        SEND_VAR                                                     $5
          8        DO_ICALL                                             $6      
          9        ASSIGN                                                       !1, $6
   11    10        INIT_FCALL                                                   'json_decode'
         11        SEND_VAR                                                     !1
         12        SEND_VAL                                                     <true>
         13        DO_ICALL                                             $8      
         14        ASSIGN                                                       !2, $8
   13    15      > FE_RESET_R                                           $10     !2, ->18
         16    > > FE_FETCH_R                                                   $10, !3, ->18
         17    > > JMP                                                          ->16
         18    >   FE_FREE                                                      $10
   14    19        ECHO                                                         !1
   15    20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.64 ms | 2785 KiB | 16 Q