3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('magic_quotes_runtime', 1); $stream = fopen('php://memory', 'w+'); fwrite($stream, 'a\\"'); var_dump(fwrite($stream, 'a\\"', 2)); ini_set('magic_quotes_runtime', 0); rewind($stream); var_dump(stream_get_contents($stream)); fclose($stream);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KLqJ9
function name:  (null)
number of ops:  38
compiled vars:  !0 = $stream
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'ini_set'
          1        SEND_VAL                                                     'magic_quotes_runtime'
          2        SEND_VAL                                                     1
          3        DO_ICALL                                                     
    4     4        INIT_FCALL                                                   'fopen'
          5        SEND_VAL                                                     'php%3A%2F%2Fmemory'
          6        SEND_VAL                                                     'w%2B'
          7        DO_ICALL                                             $2      
          8        ASSIGN                                                       !0, $2
    5     9        INIT_FCALL                                                   'fwrite'
         10        SEND_VAR                                                     !0
         11        SEND_VAL                                                     'a%5C%22'
         12        DO_ICALL                                                     
    6    13        INIT_FCALL                                                   'var_dump'
         14        INIT_FCALL                                                   'fwrite'
         15        SEND_VAR                                                     !0
         16        SEND_VAL                                                     'a%5C%22'
         17        SEND_VAL                                                     2
         18        DO_ICALL                                             $5      
         19        SEND_VAR                                                     $5
         20        DO_ICALL                                                     
    7    21        INIT_FCALL                                                   'ini_set'
         22        SEND_VAL                                                     'magic_quotes_runtime'
         23        SEND_VAL                                                     0
         24        DO_ICALL                                                     
    8    25        INIT_FCALL                                                   'rewind'
         26        SEND_VAR                                                     !0
         27        DO_ICALL                                                     
    9    28        INIT_FCALL                                                   'var_dump'
         29        INIT_FCALL                                                   'stream_get_contents'
         30        SEND_VAR                                                     !0
         31        DO_ICALL                                             $9      
         32        SEND_VAR                                                     $9
         33        DO_ICALL                                                     
   10    34        INIT_FCALL                                                   'fclose'
         35        SEND_VAR                                                     !0
         36        DO_ICALL                                                     
         37      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
188.69 ms | 2903 KiB | 19 Q