3v4l.org

run code in 500+ 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 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pOpLU
function name:  (null)
number of ops:  17
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                                                   'strtolower'
          7        FETCH_DIM_R                                          ~7      !2, 'extension'
          8        SEND_VAL                                                     ~7
          9        DO_ICALL                                             $8      
         10        FRAMELESS_ICALL_2                in_array            ~9      $8, !0
         11        BOOL_NOT                                             ~10     ~9
         12      > JMPZ                                                         ~10, ->15
   10    13    >   ECHO                                                         'pouet'
    9    14      > JMP                                                          ->16
   12    15    >   ECHO                                                         'sblitch'
         16    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.04 ms | 2087 KiB | 17 Q