3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(); $files = glob('repertoire/*'); if (count($files)>0) { foreach ($files as $file) $array[] = $file; } if ($array == NULL) { echo("Aucun fichier"); } else { echo("fichiers: ".implode($array, ',')); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 14
filename:       /in/XDqTn
function name:  (null)
number of ops:  25
compiled vars:  !0 = $array, !1 = $files, !2 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'glob'
          2        SEND_VAL                                                 'repertoire%2F%2A'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        COUNT                                            ~6      !1
          6        IS_SMALLER                                               0, ~6
          7      > JMPZ                                                     ~7, ->14
    7     8    > > FE_RESET_R                                       $8      !1, ->13
          9    > > FE_FETCH_R                                               $8, !2, ->13
         10    >   ASSIGN_DIM                                               !0
         11        OP_DATA                                                  !2
         12      > JMP                                                      ->9
         13    >   FE_FREE                                                  $8
   10    14    >   IS_EQUAL                                                 !0, null
         15      > JMPZ                                                     ~10, ->18
   12    16    >   ECHO                                                     'Aucun+fichier'
         17      > JMP                                                      ->24
   15    18    >   INIT_FCALL                                               'implode'
         19        SEND_VAR                                                 !0
         20        SEND_VAL                                                 '%2C'
         21        DO_ICALL                                         $11     
         22        CONCAT                                           ~12     'fichiers%3A+', $11
         23        ECHO                                                     ~12
   16    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.32 ms | 1396 KiB | 17 Q