3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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/YkEqJ
function name:  (null)
number of ops:  22
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 >   ASSIGN                                                   !0, '%3C%3Fphp+print++%27waaa%27%3B+'
    5     1        ASSIGN                                                   !1, 'http%3A%2F%2F3v4l.org%2F'
    8     2        INIT_ARRAY                                       ~8      'POST', 'method'
    9     3        CONCAT                                           ~9      'code%3D', !0
          4        ADD_ARRAY_ELEMENT                                ~8      ~9, 'content'
          5        INIT_ARRAY                                       ~10     ~8, 'http'
    7     6        ASSIGN                                                   !2, ~10
   12     7        INIT_FCALL                                               'stream_context_create'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $12     
         10        ASSIGN                                                   !3, $12
   13    11        BEGIN_SILENCE                                    ~14     
         12        INIT_FCALL                                               'fopen'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 'rb'
         15        SEND_VAL                                                 <false>
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $15     
         18        END_SILENCE                                              ~14
         19        ASSIGN                                                   !4, $15
   16    20        ECHO                                                     !5
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.55 ms | 1395 KiB | 17 Q