3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handle = opendir('/tmp'); while (false !== ($entry = readdir($handle))) { echo "$entry\n"; } echo file_get_contents("/tmp/sess_91e9a535242e4756f3db0ca9fbe4ba61");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 5
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 5
Branch analysis from position: 14
Branch analysis from position: 5
filename:       /in/1LBCR
function name:  (null)
number of ops:  19
compiled vars:  !0 = $handle, !1 = $entry
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'opendir'
          1        SEND_VAL                                                 '%2Ftmp'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4      > JMP                                                      ->8
    5     5    >   NOP                                                      
          6        FAST_CONCAT                                      ~4      !1, '%0A'
          7        ECHO                                                     ~4
    4     8    >   INIT_FCALL                                               'readdir'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        ASSIGN                                           ~6      !1, $5
         12        TYPE_CHECK                                  1018          ~6
         13      > JMPNZ                                                    ~7, ->5
    8    14    >   INIT_FCALL                                               'file_get_contents'
         15        SEND_VAL                                                 '%2Ftmp%2Fsess_91e9a535242e4756f3db0ca9fbe4ba61'
         16        DO_ICALL                                         $8      
         17        ECHO                                                     $8
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.43 ms | 1386 KiB | 19 Q