3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( "Hi"); $ch = curl_init("http://www.google.com/"); var_dump($ch); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "postvar1=value1&postvar2=value2&postvar3=value3"); // in real life you should use something like: // curl_setopt($ch, CURLOPT_POSTFIELDS, // http_build_query(array('postvar1' => 'value1'))); // receive server response ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec ($ch); curl_close ($ch); // further processing .... if ($server_output == "OK") { print "OK"; } else { print "FAIL"; } var_dump($server_output); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 39
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M60SL
function name:  (null)
number of ops:  44
compiled vars:  !0 = $ch, !1 = $server_output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'Hi'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL_BY_NAME                                       'curl_init'
          4        SEND_VAL_EX                                              'http%3A%2F%2Fwww.google.com%2F'
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !0, $3
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    7    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !0
         12        FETCH_CONSTANT                                   ~6      'CURLOPT_POST'
         13        SEND_VAL_EX                                              ~6
         14        SEND_VAL_EX                                              1
         15        DO_FCALL                                      0          
    8    16        INIT_FCALL_BY_NAME                                       'curl_setopt'
         17        SEND_VAR_EX                                              !0
         18        FETCH_CONSTANT                                   ~8      'CURLOPT_POSTFIELDS'
         19        SEND_VAL_EX                                              ~8
    9    20        SEND_VAL_EX                                              'postvar1%3Dvalue1%26postvar2%3Dvalue2%26postvar3%3Dvalue3'
         21        DO_FCALL                                      0          
   15    22        INIT_FCALL_BY_NAME                                       'curl_setopt'
         23        SEND_VAR_EX                                              !0
         24        FETCH_CONSTANT                                   ~10     'CURLOPT_RETURNTRANSFER'
         25        SEND_VAL_EX                                              ~10
         26        SEND_VAL_EX                                              <true>
         27        DO_FCALL                                      0          
   17    28        INIT_FCALL_BY_NAME                                       'curl_exec'
         29        SEND_VAR_EX                                              !0
         30        DO_FCALL                                      0  $12     
         31        ASSIGN                                                   !1, $12
   19    32        INIT_FCALL_BY_NAME                                       'curl_close'
         33        SEND_VAR_EX                                              !0
         34        DO_FCALL                                      0          
   22    35        IS_EQUAL                                                 !1, 'OK'
         36      > JMPZ                                                     ~15, ->39
         37    >   ECHO                                                     'OK'
         38      > JMP                                                      ->40
         39    >   ECHO                                                     'FAIL'
   23    40    >   INIT_FCALL                                               'var_dump'
         41        SEND_VAR                                                 !1
         42        DO_ICALL                                                 
   25    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.84 ms | 1400 KiB | 15 Q