3v4l.org

run code in 300+ PHP versions simultaneously
<?php $info = new SplFileInfo(__FILE__); var_dump($info->isFile()); $info = new SplFileInfo(dirname(__FILE__)); var_dump($info->isFile()); exit; $path = "/home/sjon/phpshell/root/php-5.5.0/lib/php/extensions/no-debug-non-zts-20121212/vld.so"; //$dir = dir($path); try { $file = new \SplFileObject($path, 'r'); } catch (Exception $e) { echo $e->getMessage(); exit; } var_dump($file->isFile()); exit;; while (($entry = $dir->read()) !== false) { var_dump($entry); try { $file = new \SplFileObject($path. $entry, 'r'); } catch (Exception $e) { continue; } var_dump($file->isFile()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
Found catch point at position: 29
Branch analysis from position: 29
2 jumps found. (Code = 107) Position 1 = 30, Position 2 = -2
Branch analysis from position: 30
1 jumps found. (Code = 79) Position 1 = -2
Found catch point at position: 51
Branch analysis from position: 51
2 jumps found. (Code = 107) Position 1 = 52, Position 2 = -2
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 58
Branch analysis from position: 58
2 jumps found. (Code = 44) Position 1 = 63, Position 2 = 41
Branch analysis from position: 63
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 53
Branch analysis from position: 53
2 jumps found. (Code = 44) Position 1 = 63, Position 2 = 41
Branch analysis from position: 63
Branch analysis from position: 41
filename:       /in/oMjuM
function name:  (null)
number of ops:  64
compiled vars:  !0 = $info, !1 = $path, !2 = $file, !3 = $e, !4 = $entry, !5 = $dir
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $6      'SplFileInfo'
          1        SEND_VAL_EX                                              '%2Fin%2FoMjuM'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $6
    4     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'isFile'
          6        DO_FCALL                                      0  $9      
          7        SEND_VAR                                                 $9
          8        DO_ICALL                                                 
    6     9        NEW                                              $11     'SplFileInfo'
         10        INIT_FCALL                                               'dirname'
         11        SEND_VAL                                                 '%2Fin%2FoMjuM'
         12        DO_ICALL                                         $12     
         13        SEND_VAR_NO_REF_EX                                       $12
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !0, $11
    7    16        INIT_FCALL                                               'var_dump'
         17        INIT_METHOD_CALL                                         !0, 'isFile'
         18        DO_FCALL                                      0  $15     
         19        SEND_VAR                                                 $15
         20        DO_ICALL                                                 
    8    21      > EXIT                                                     
    9    22*       ASSIGN                                                   !1, '%2Fhome%2Fsjon%2Fphpshell%2Froot%2Fphp-5.5.0%2Flib%2Fphp%2Fextensions%2Fno-debug-non-zts-20121212%2Fvld.so'
   13    23*       NEW                                              $18     'SplFileObject'
         24*       SEND_VAR_EX                                              !1
         25*       SEND_VAL_EX                                              'r'
         26*       DO_FCALL                                      0          
         27*       ASSIGN                                                   !2, $18
         28*       JMP                                                      ->34
   14    29  E > > CATCH                                       last         'Exception'
   15    30    >   INIT_METHOD_CALL                                         !3, 'getMessage'
         31        DO_FCALL                                      0  $21     
         32        ECHO                                                     $21
   16    33      > EXIT                                                     
   18    34*       INIT_FCALL                                               'var_dump'
         35*       INIT_METHOD_CALL                                         !2, 'isFile'
         36*       DO_FCALL                                      0  $22     
         37*       SEND_VAR                                                 $22
         38*       DO_ICALL                                                 
   19    39*       EXIT                                                     
   20    40*       JMP                                                      ->58
   21    41    >   INIT_FCALL                                               'var_dump'
         42        SEND_VAR                                                 !4
         43        DO_ICALL                                                 
   23    44        NEW                                              $25     'SplFileObject'
         45        CONCAT                                           ~26     !1, !4
         46        SEND_VAL_EX                                              ~26
         47        SEND_VAL_EX                                              'r'
         48        DO_FCALL                                      0          
         49        ASSIGN                                                   !2, $25
         50      > JMP                                                      ->53
   24    51  E > > CATCH                                       last         'Exception'
   25    52    > > JMP                                                      ->58
   27    53    >   INIT_FCALL                                               'var_dump'
         54        INIT_METHOD_CALL                                         !2, 'isFile'
         55        DO_FCALL                                      0  $29     
         56        SEND_VAR                                                 $29
         57        DO_ICALL                                                 
   20    58    >   INIT_METHOD_CALL                                         !5, 'read'
         59        DO_FCALL                                      0  $31     
         60        ASSIGN                                           ~32     !4, $31
         61        TYPE_CHECK                                  1018          ~32
         62      > JMPNZ                                                    ~33, ->41
   28    63    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.06 ms | 1400 KiB | 17 Q