3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.4 ms | 1395 KiB | 17 Q