3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
290.38 ms | 1009 KiB | 18 Q