3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?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; ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 24
filename:       /in/hBstr
function name:  (null)
number of ops:  36
compiled vars:  !0 = $postdata, !1 = $opts, !2 = $apiURL, !3 = $context, !4 = $fp, !5 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3EOnline+PHP+Script+Execution%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A'
    7     1        INIT_FCALL                                               'http_build_query'
    9     2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $6      
    7     4        ASSIGN                                                   !0, $6
   15     5        INIT_ARRAY                                       ~8      'POST', 'method'
   16     6        ADD_ARRAY_ELEMENT                                ~8      !0, 'content'
          7        INIT_ARRAY                                       ~9      ~8, 'http'
   13     8        ASSIGN                                                   !1, ~9
   19     9        ASSIGN                                                   !2, 'https%3A%2F%2Fvpic.nhtsa.dot.gov%2Fapi%2Fvehicles%2FDecodeVINValuesBatch%2F'
   20    10        INIT_FCALL                                               'stream_context_create'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $12     
         13        ASSIGN                                                   !3, $12
   21    14        INIT_FCALL                                               'fopen'
         15        SEND_VAR                                                 !2
         16        SEND_VAL                                                 'rb'
         17        SEND_VAL                                                 <false>
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                         $14     
         20        ASSIGN                                                   !4, $14
   22    21        BOOL_NOT                                         ~16     !4
         22      > JMPZ                                                     ~16, ->24
   24    23    >   ECHO                                                     'in+first+if'
   26    24    >   BEGIN_SILENCE                                    ~17     
         25        INIT_FCALL                                               'stream_get_contents'
         26        SEND_VAR                                                 !4
         27        DO_ICALL                                         $18     
         28        END_SILENCE                                              ~17
         29        ASSIGN                                                   !5, $18
   27    30        BOOL_NOT                                         ~20     !5
         31      > JMPZ                                                     ~20, ->33
   29    32    >   ECHO                                                     'in+second+if'
   31    33    >   ECHO                                                     !5
   33    34        ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   34    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.53 ms | 1396 KiB | 21 Q