3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = fopen('php://stdout', 'r');fwrite($f, 'te');$f = fopen('php://output', 'r');fwrite($f, 'st');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2SlLa
function name:  (null)
number of ops:  19
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'php%3A%2F%2Fstdout'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
          5        INIT_FCALL                                               'fwrite'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'te'
          8        DO_ICALL                                                 
          9        INIT_FCALL                                               'fopen'
         10        SEND_VAL                                                 'php%3A%2F%2Foutput'
         11        SEND_VAL                                                 'r'
         12        DO_ICALL                                         $4      
         13        ASSIGN                                                   !0, $4
         14        INIT_FCALL                                               'fwrite'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 'st'
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.39 ms | 939 KiB | 18 Q