3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code= urlencode('<?php echo "waa"; '); $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/ApUJB
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
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'urlencode'
          1        SEND_VAL                                                 '%3C%3Fphp+echo+%22waa%22%3B+++'
          2        DO_ICALL                                         $6      
          3        ASSIGN                                                   !0, $6
    7     4        ASSIGN                                                   !1, 'http%3A%2F%2F3v4l.org%2F'
   10     5        INIT_ARRAY                                       ~9      'POST', 'method'
   11     6        CONCAT                                           ~10     'code%3D', !0
          7        ADD_ARRAY_ELEMENT                                ~9      ~10, 'content'
          8        INIT_ARRAY                                       ~11     ~9, 'http'
    9     9        ASSIGN                                                   !2, ~11
   14    10        INIT_FCALL                                               'stream_context_create'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $13     
         13        ASSIGN                                                   !3, $13
   15    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
   18    23        ECHO                                                     !5
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.01 ms | 1395 KiB | 19 Q