3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Open a test file for reading and writing */ $fp = fopen("test.txt", "rw"); $rot13_filter = stream_filter_append($fp, "string.rot13", STREAM_FILTER_WRITE); fwrite($fp, "This is "); stream_filter_remove($rot13_filter); fwrite($fp, "a test\n"); rewind($fp); fpassthru($fp); fclose($fp); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q6usD
function name:  (null)
number of ops:  32
compiled vars:  !0 = $fp, !1 = $rot13_filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'test.txt'
          2        SEND_VAL                                                 'rw'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    5     5        INIT_FCALL                                               'stream_filter_append'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'string.rot13'
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
    6    11        INIT_FCALL                                               'fwrite'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 'This+is+'
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'stream_filter_remove'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
    8    18        INIT_FCALL                                               'fwrite'
         19        SEND_VAR                                                 !0
         20        SEND_VAL                                                 'a+test%0A'
         21        DO_ICALL                                                 
   10    22        INIT_FCALL                                               'rewind'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
   11    25        INIT_FCALL                                               'fpassthru'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
   12    28        INIT_FCALL                                               'fclose'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                                 
   14    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.54 ms | 1395 KiB | 27 Q