3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code= urlencode(' $url="http://3v4l.org/"; $params = array("http" => array( "method" => "POST", "content" => "code=".$code )); $ctx = stream_context_create($params); $fp = @fopen($url, "rb", false, $ctx); print $response; '); $url="http://3v4l.org/"; $params = array("http" => array( "method" => "POST", "content" => "code=".$code )); $ctx = stream_context_create($params); $fp = @fopen($url, "rb", false, $ctx); print $response;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Iu2jP
function name:  (null)
number of ops:  25
compiled vars:  !0 = $code, !1 = $url, !2 = $params, !3 = $ctx, !4 = $fp, !5 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'urlencode'
          1        SEND_VAL                                                 '%0A+%0A++%24url%3D%22http%3A%2F%2F3v4l.org%2F%22%3B%0A++%0A++%24params+%3D+array%28%22http%22+%3D%3E+array%28%0A++++++++++++++%22method%22+%3D%3E+%22POST%22%2C%0A++++++++++++++%22content%22+%3D%3E+%22code%3D%22.%24code%0A++++++++++++%29%29%3B%0A+%0A++%24ctx+%3D+stream_context_create%28%24params%29%3B%0A++%24fp+%3D+%40fopen%28%24url%2C+%22rb%22%2C+false%2C+%24ctx%29%3B%0A+%0A++%0A+print+%24response%3B+'
          2        DO_ICALL                                         $6      
          3        ASSIGN                                                   !0, $6
   21     4        ASSIGN                                                   !1, 'http%3A%2F%2F3v4l.org%2F'
   24     5        INIT_ARRAY                                       ~9      'POST', 'method'
   25     6        CONCAT                                           ~10     'code%3D', !0
          7        ADD_ARRAY_ELEMENT                                ~9      ~10, 'content'
          8        INIT_ARRAY                                       ~11     ~9, 'http'
   23     9        ASSIGN                                                   !2, ~11
   28    10        INIT_FCALL                                               'stream_context_create'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $13     
         13        ASSIGN                                                   !3, $13
   29    14        BEGIN_SILENCE                                    ~15     
         15        INIT_FCALL                                               'fopen'
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 'rb'
         18        SEND_VAL                                                 <false>
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                         $16     
         21        END_SILENCE                                              ~15
         22        ASSIGN                                                   !4, $16
   32    23        ECHO                                                     !5
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.69 ms | 1395 KiB | 19 Q