3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dh = opendir('/proc/'.getmypid()); $out = ''; var_dump(readdir($dh)); closedir($dh);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/768d8
function name:  (null)
number of ops:  18
compiled vars:  !0 = $dh, !1 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'opendir'
          1        INIT_FCALL                                               'getmypid'
          2        DO_ICALL                                         $2      
          3        CONCAT                                           ~3      '%2Fproc%2F', $2
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    3     7        ASSIGN                                                   !1, ''
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'readdir'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
    5    14        INIT_FCALL                                               'closedir'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.14 ms | 1394 KiB | 23 Q