3v4l.org

run code in 300+ PHP versions simultaneously
<?php $postdata = http_build_query( array( 'format' => 'csv', 'data' => '3GNDA13D76S000000;5XYKT3A12CG000000' ) ); $opts = array('http' => array( 'method' => 'POST', 'content' => $postdata ) ); $apiURL = "https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVINValuesBatch/"; $context = stream_context_create($opts); $fp = fopen($apiURL, 'rb', false, $context); if(!$fp) { echo "in first if"; } $response = @stream_get_contents($fp); if($response == false) { echo "in second if"; } echo $response; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 32
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
Branch analysis from position: 23
filename:       /in/XGPe0
function name:  (null)
number of ops:  34
compiled vars:  !0 = $postdata, !1 = $opts, !2 = $apiURL, !3 = $context, !4 = $fp, !5 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'http_build_query'
    4     1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $6      
    2     3        ASSIGN                                                   !0, $6
   10     4        INIT_ARRAY                                       ~8      'POST', 'method'
   11     5        ADD_ARRAY_ELEMENT                                ~8      !0, 'content'
          6        INIT_ARRAY                                       ~9      ~8, 'http'
    8     7        ASSIGN                                                   !1, ~9
   14     8        ASSIGN                                                   !2, 'https%3A%2F%2Fvpic.nhtsa.dot.gov%2Fapi%2Fvehicles%2FDecodeVINValuesBatch%2F'
   15     9        INIT_FCALL                                               'stream_context_create'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $12     
         12        ASSIGN                                                   !3, $12
   16    13        INIT_FCALL                                               'fopen'
         14        SEND_VAR                                                 !2
         15        SEND_VAL                                                 'rb'
         16        SEND_VAL                                                 <false>
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $14     
         19        ASSIGN                                                   !4, $14
   17    20        BOOL_NOT                                         ~16     !4
         21      > JMPZ                                                     ~16, ->23
   19    22    >   ECHO                                                     'in+first+if'
   21    23    >   BEGIN_SILENCE                                    ~17     
         24        INIT_FCALL                                               'stream_get_contents'
         25        SEND_VAR                                                 !4
         26        DO_ICALL                                         $18     
         27        END_SILENCE                                              ~17
         28        ASSIGN                                                   !5, $18
   22    29        BOOL_NOT                                         ~20     !5
         30      > JMPZ                                                     ~20, ->32
   24    31    >   ECHO                                                     'in+second+if'
   26    32    >   ECHO                                                     !5
   27    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.45 ms | 1388 KiB | 21 Q