3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = new HttpRequest('http://example.com/form.php', HttpRequest::METH_POST); $r->setOptions(array('cookies' => array('lang' => 'de'))); $r->addPostFields(array('user' => 'mike', 'pass' => 's3c|r3t')); $r->addPostFile('image', 'profile.jpg', 'image/jpeg'); try { echo $r->send()->getBody(); } catch (HttpException $ex) { echo $ex; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 23
Branch analysis from position: 23
2 jumps found. (Code = 107) Position 1 = 24, Position 2 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ueZHH
function name:  (null)
number of ops:  26
compiled vars:  !0 = $r, !1 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'HttpRequest'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fexample.com%2Fform.php'
          2        FETCH_CLASS_CONSTANT                             ~3      'HttpRequest', 'METH_POST'
          3        SEND_VAL_EX                                              ~3
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    3     6        INIT_METHOD_CALL                                         !0, 'setOptions'
          7        SEND_VAL_EX                                              <array>
          8        DO_FCALL                                      0          
    4     9        INIT_METHOD_CALL                                         !0, 'addPostFields'
         10        SEND_VAL_EX                                              <array>
         11        DO_FCALL                                      0          
    5    12        INIT_METHOD_CALL                                         !0, 'addPostFile'
         13        SEND_VAL_EX                                              'image'
         14        SEND_VAL_EX                                              'profile.jpg'
         15        SEND_VAL_EX                                              'image%2Fjpeg'
         16        DO_FCALL                                      0          
    7    17        INIT_METHOD_CALL                                         !0, 'send'
         18        DO_FCALL                                      0  $9      
         19        INIT_METHOD_CALL                                         $9, 'getBody'
         20        DO_FCALL                                      0  $10     
         21        ECHO                                                     $10
         22      > JMP                                                      ->25
    8    23  E > > CATCH                                       last         'HttpException'
    9    24    >   ECHO                                                     !1
   11    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.23 ms | 1394 KiB | 13 Q