3v4l.org

run code in 300+ PHP versions simultaneously
<?php print <<<EOF <!DOCTYPE html><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><head> <link rel="shortcut icon" href="../img/bla.gif"/><title>ゴミ箱</title><body> EOF; $res_dir = opendir( '.' ); while( $file_name = readdir( $res_dir ) ){ if($file_name == "index.php"){ }else { if($file_name == "."){ }else { if($file_name == ".."){ }else { print <<<EOF <li><a href="./$file_name">$file_name</a></li> EOF; } } } } closedir( $res_dir ); print <<<EOF </body></html> EOF; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 6
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 6
Branch analysis from position: 26
Branch analysis from position: 6
filename:       /in/AVRh7
function name:  (null)
number of ops:  31
compiled vars:  !0 = $res_dir, !1 = $file_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%3CMETA+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3DUTF-8%22%3E%3Chead%3E%0A%3Clink+rel%3D%22shortcut+icon%22+href%3D%22..%2Fimg%2Fbla.gif%22%2F%3E%3Ctitle%3E%E3%82%B4%E3%83%9F%E7%AE%B1%3C%2Ftitle%3E%3Cbody%3E'
    6     1        INIT_FCALL                                               'opendir'
          2        SEND_VAL                                                 '.'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    7     5      > JMP                                                      ->21
    8     6    >   IS_EQUAL                                                 !1, 'index.php'
          7      > JMPZ                                                     ~4, ->9
          8    > > JMP                                                      ->21
   10     9    >   IS_EQUAL                                                 !1, '.'
         10      > JMPZ                                                     ~5, ->12
         11    > > JMP                                                      ->21
   12    12    >   IS_EQUAL                                                 !1, '..'
         13      > JMPZ                                                     ~6, ->15
         14    > > JMP                                                      ->21
   15    15    >   ROPE_INIT                                     5  ~8      '%3Cli%3E%3Ca+href%3D%22.%2F'
         16        ROPE_ADD                                      1  ~8      ~8, !1
         17        ROPE_ADD                                      2  ~8      ~8, '%22%3E'
         18        ROPE_ADD                                      3  ~8      ~8, !1
         19        ROPE_END                                      4  ~7      ~8, '%3C%2Fa%3E%3C%2Fli%3E'
         20        ECHO                                                     ~7
    7    21    >   INIT_FCALL                                               'readdir'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $11     
         24        ASSIGN                                           ~12     !1, $11
         25      > JMPNZ                                                    ~12, ->6
   21    26    >   INIT_FCALL                                               'closedir'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                                 
   23    29        ECHO                                                     '%3C%2Fbody%3E%3C%2Fhtml%3E'
   26    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.05 ms | 1405 KiB | 19 Q