3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump($x = fopen("data:text/plain,trololololo", 'r')); var_dump(stream_get_contents($x)); var_dump($x = fopen("data:text/plain,trololololo", 'w')); var_dump(stream_get_contents($x)); var_dump($x = fopen("data:text/plain,trololololo", 'a')); var_dump(stream_get_contents($x));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EOBQ1
function name:  (null)
number of ops:  43
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'fopen'
          2        SEND_VAL                                                 'data%3Atext%2Fplain%2Ctrololololo'
          3        SEND_VAL                                                 'r'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                           ~2      !0, $1
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'stream_get_contents'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
    5    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'fopen'
         16        SEND_VAL                                                 'data%3Atext%2Fplain%2Ctrololololo'
         17        SEND_VAL                                                 'w'
         18        DO_ICALL                                         $6      
         19        ASSIGN                                           ~7      !0, $6
         20        SEND_VAL                                                 ~7
         21        DO_ICALL                                                 
    6    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'stream_get_contents'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $9      
         26        SEND_VAR                                                 $9
         27        DO_ICALL                                                 
    7    28        INIT_FCALL                                               'var_dump'
         29        INIT_FCALL                                               'fopen'
         30        SEND_VAL                                                 'data%3Atext%2Fplain%2Ctrololololo'
         31        SEND_VAL                                                 'a'
         32        DO_ICALL                                         $11     
         33        ASSIGN                                           ~12     !0, $11
         34        SEND_VAL                                                 ~12
         35        DO_ICALL                                                 
    8    36        INIT_FCALL                                               'var_dump'
         37        INIT_FCALL                                               'stream_get_contents'
         38        SEND_VAR                                                 !0
         39        DO_ICALL                                         $14     
         40        SEND_VAR                                                 $14
         41        DO_ICALL                                                 
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.94 ms | 1396 KiB | 19 Q