3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.hackerschool.jp/hack/take22.php'; $data = array( 'pass' => 'take22password', ); $headers = array( 'Cookie: PHPSESSID=hoge;', ); $options = array('http' => array( 'method' => 'POST', 'content' => http_build_query($data), 'header' => implode("\r\n", $headers), )); echo file_get_contents($url, false, stream_context_create($options));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/55KEF
function name:  (null)
number of ops:  25
compiled vars:  !0 = $url, !1 = $data, !2 = $headers, !3 = $options
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.hackerschool.jp%2Fhack%2Ftake22.php'
    3     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, <array>
   10     3        INIT_ARRAY                                       ~7      'POST', 'method'
   11     4        INIT_FCALL                                               'http_build_query'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $8      
          7        ADD_ARRAY_ELEMENT                                ~7      $8, 'content'
   12     8        INIT_FCALL                                               'implode'
          9        SEND_VAL                                                 '%0D%0A'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $9      
         12        ADD_ARRAY_ELEMENT                                ~7      $9, 'header'
         13        INIT_ARRAY                                       ~10     ~7, 'http'
    9    14        ASSIGN                                                   !3, ~10
   14    15        INIT_FCALL                                               'file_get_contents'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 <false>
         18        INIT_FCALL                                               'stream_context_create'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                         $12     
         21        SEND_VAR                                                 $12
         22        DO_ICALL                                         $13     
         23        ECHO                                                     $13
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.94 ms | 1387 KiB | 21 Q