3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bad_extensions = array( 'html' , 'js' , 'gif' , 'png', 'php','jpg', 'jpeg','xml', 'txt','zip','bak' ); $file_name = '2-E-Book à télécharger.php'; $fileinfo = pathinfo($file_name); if ( !in_array(strtolower($fileinfo["extension"]), $bad_extensions) ) echo "pouet"; else echo "sblitch";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pOpLU
function name:  (null)
number of ops:  20
compiled vars:  !0 = $bad_extensions, !1 = $file_name, !2 = $fileinfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, '2-E-Book+%C3%A0+t%C3%A9l%C3%A9charger.php'
    7     2        INIT_FCALL                                               'pathinfo'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !2, $5
    9     6        INIT_FCALL                                               'in_array'
          7        INIT_FCALL                                               'strtolower'
          8        FETCH_DIM_R                                      ~7      !2, 'extension'
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        SEND_VAR                                                 $8
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $9      
         14        BOOL_NOT                                         ~10     $9
         15      > JMPZ                                                     ~10, ->18
   10    16    >   ECHO                                                     'pouet'
         17      > JMP                                                      ->19
   12    18    >   ECHO                                                     'sblitch'
         19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.34 ms | 1399 KiB | 19 Q