3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.59 ms | 1395 KiB | 21 Q