3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to_ignore = array("bin", "exe", "jpg"); $filename = "test/hello.binr"; $ext = pathinfo($filename, PATHINFO_EXTENSION); if (in_array($ext, $to_ignore)) { echo "will ignore"; } else { echo "Won't ignore"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IFV3s
function name:  (null)
number of ops:  16
compiled vars:  !0 = $to_ignore, !1 = $filename, !2 = $ext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 'test%2Fhello.binr'
    4     2        INIT_FCALL                                               'pathinfo'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 4
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    5     7        INIT_FCALL                                               'in_array'
          8        SEND_VAR                                                 !2
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11      > JMPZ                                                     $7, ->14
    6    12    >   ECHO                                                     'will+ignore'
         13      > JMP                                                      ->15
    8    14    >   ECHO                                                     'Won%27t+ignore'
   10    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.82 ms | 1394 KiB | 17 Q