3v4l.org

run code in 300+ PHP versions simultaneously
<?php $error = array(); $allowedExts = array("jpg", "jpeg", "gif", "png"); if (!in_array($_FILES["newsthumb"]['type'], $allowedExts) || !in_array($_FILES["newsmain"]['type'], $allowedExts)) { $error[] = "One/Both of the files are too large.<br>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 20
filename:       /in/peMej
function name:  (null)
number of ops:  24
compiled vars:  !0 = $error, !1 = $allowedExts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'in_array'
          3        FETCH_R                      global              ~4      '_FILES'
          4        FETCH_DIM_R                                      ~5      ~4, 'newsthumb'
          5        FETCH_DIM_R                                      ~6      ~5, 'type'
          6        SEND_VAL                                                 ~6
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        BOOL_NOT                                         ~8      $7
         10      > JMPNZ_EX                                         ~8      ~8, ->20
         11    >   INIT_FCALL                                               'in_array'
         12        FETCH_R                      global              ~9      '_FILES'
         13        FETCH_DIM_R                                      ~10     ~9, 'newsmain'
         14        FETCH_DIM_R                                      ~11     ~10, 'type'
         15        SEND_VAL                                                 ~11
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $12     
         18        BOOL_NOT                                         ~13     $12
         19        BOOL                                             ~8      ~13
         20    > > JMPZ                                                     ~8, ->23
    7    21    >   ASSIGN_DIM                                               !0
         22        OP_DATA                                                  'One%2FBoth+of+the+files+are+too+large.%3Cbr%3E'
    8    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.09 ms | 1387 KiB | 15 Q