3v4l.org

run code in 300+ PHP versions simultaneously
<?php // appends the text to the end of the end of the file file_put_contents($file, $text, FILE_APPEND); // appends the text to the end of the end of the file $fp = fwrite($file, 'a'); fwrite($fp, $text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Da3Op
function name:  (null)
number of ops:  15
compiled vars:  !0 = $file, !1 = $text, !2 = $fp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'file_put_contents'
          1        SEND_VAR                                                 !0
          2        SEND_VAR                                                 !1
          3        SEND_VAL                                                 8
          4        DO_ICALL                                                 
    7     5        INIT_FCALL                                               'fwrite'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'a'
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !2, $4
    8    10        INIT_FCALL                                               'fwrite'
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.68 ms | 997 KiB | 15 Q