3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = "music.mp33839"; if (substr($filename, -3) == 'mp3') : elseif (substr($filename, -3) == 'mp4') : elseif (substr($filename, -3) == 'pdf') : elseif (substr($filename, -3) == 'doc') : elseif (substr($filename, -3) == 'zip') : elseif (substr($filename, -3) == 'epub') : elseif (substr($filename, -3) == 'mobi') : else : echo "Exited!"; endif;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 29
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 36
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 43
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
Branch analysis from position: 43
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 50
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C3Z76
function name:  (null)
number of ops:  52
compiled vars:  !0 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'music.mp33839'
    5     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 -3
          4        DO_ICALL                                         $2      
          5        IS_EQUAL                                                 $2, 'mp3'
          6      > JMPZ                                                     ~3, ->8
          7    > > JMP                                                      ->51
    6     8    >   INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 -3
         11        DO_ICALL                                         $4      
         12        IS_EQUAL                                                 $4, 'mp4'
         13      > JMPZ                                                     ~5, ->15
         14    > > JMP                                                      ->51
    7    15    >   INIT_FCALL                                               'substr'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 -3
         18        DO_ICALL                                         $6      
         19        IS_EQUAL                                                 $6, 'pdf'
         20      > JMPZ                                                     ~7, ->22
         21    > > JMP                                                      ->51
    8    22    >   INIT_FCALL                                               'substr'
         23        SEND_VAR                                                 !0
         24        SEND_VAL                                                 -3
         25        DO_ICALL                                         $8      
         26        IS_EQUAL                                                 $8, 'doc'
         27      > JMPZ                                                     ~9, ->29
         28    > > JMP                                                      ->51
    9    29    >   INIT_FCALL                                               'substr'
         30        SEND_VAR                                                 !0
         31        SEND_VAL                                                 -3
         32        DO_ICALL                                         $10     
         33        IS_EQUAL                                                 $10, 'zip'
         34      > JMPZ                                                     ~11, ->36
         35    > > JMP                                                      ->51
   10    36    >   INIT_FCALL                                               'substr'
         37        SEND_VAR                                                 !0
         38        SEND_VAL                                                 -3
         39        DO_ICALL                                         $12     
         40        IS_EQUAL                                                 $12, 'epub'
         41      > JMPZ                                                     ~13, ->43
         42    > > JMP                                                      ->51
   11    43    >   INIT_FCALL                                               'substr'
         44        SEND_VAR                                                 !0
         45        SEND_VAL                                                 -3
         46        DO_ICALL                                         $14     
         47        IS_EQUAL                                                 $14, 'mobi'
         48      > JMPZ                                                     ~15, ->50
         49    > > JMP                                                      ->51
   12    50    >   ECHO                                                     'Exited%21'
   13    51    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.76 ms | 1400 KiB | 15 Q