3v4l.org

run code in 300+ PHP versions simultaneously
<?php $image = '/Users/mrjonleek/Sites/sonance/v200/public/assets/media/images/groups/php_5.gif'; if(strToLower(basename($image)) === 'placeholder.gif' OR ! preg_match('/tmp/', $image)) echo $image;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 15
filename:       /in/hJfoF
function name:  (null)
number of ops:  18
compiled vars:  !0 = $image
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2FUsers%2Fmrjonleek%2FSites%2Fsonance%2Fv200%2Fpublic%2Fassets%2Fmedia%2Fimages%2Fgroups%2Fphp_5.gif'
    3     1        INIT_FCALL                                               'strtolower'
          2        INIT_FCALL                                               'basename'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $3      
          7        IS_IDENTICAL                                     ~4      $3, 'placeholder.gif'
          8      > JMPNZ_EX                                         ~4      ~4, ->15
          9    >   INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%2Ftmp%2F'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        BOOL_NOT                                         ~6      $5
         14        BOOL                                             ~4      ~6
         15    > > JMPZ                                                     ~4, ->17
    4    16    >   ECHO                                                     !0
         17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.75 ms | 1386 KiB | 19 Q