3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172 ms | 1379 KiB | 18 Q