3v4l.org

run code in 300+ PHP versions simultaneously
$code="<?php print 'waaa'; $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/MGgX9
function name:  (null)
number of ops:  23
compiled vars:  !0 = $url, !1 = $params, !2 = $code, !3 = $ctx, !4 = $fp, !5 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%24code%3D%22'
          1        ECHO                                                     'waaa'
    3     2        ASSIGN                                                   !0, 'http%3A%2F%2F3v4l.org%2F'
    6     3        INIT_ARRAY                                       ~7      'POST', 'method'
    7     4        CONCAT                                           ~8      'code%3D', !2
          5        ADD_ARRAY_ELEMENT                                ~7      ~8, 'content'
          6        INIT_ARRAY                                       ~9      ~7, 'http'
    5     7        ASSIGN                                                   !1, ~9
   10     8        INIT_FCALL                                               'stream_context_create'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $11     
         11        ASSIGN                                                   !3, $11
   11    12        BEGIN_SILENCE                                    ~13     
         13        INIT_FCALL                                               'fopen'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 'rb'
         16        SEND_VAL                                                 <false>
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $14     
         19        END_SILENCE                                              ~13
         20        ASSIGN                                                   !4, $14
   14    21        ECHO                                                     !5
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.21 ms | 1395 KiB | 17 Q