3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $f = fopen(tempnam(sys_get_Temp_dir(), 'gg'), 'w'); fwrite($f, 'bla', -5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fnrhl
function name:  (null)
number of ops:  20
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'fopen'
          4        INIT_FCALL                                               'tempnam'
          5        INIT_FCALL                                               'sys_get_temp_dir'
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        SEND_VAL                                                 'gg'
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        SEND_VAL                                                 'w'
         12        DO_ICALL                                         $4      
         13        ASSIGN                                                   !0, $4
    4    14        INIT_FCALL                                               'fwrite'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 'bla'
         17        SEND_VAL                                                 -5
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.22 ms | 1394 KiB | 23 Q