3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.31 ms | 1398 KiB | 23 Q