3v4l.org

run code in 300+ PHP versions simultaneously
<?php $browser = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 "; if (in_array($allowedBrowsers, $browser)) { echo "using something else"; } elseif (in_array($badBrowsers, $browser)) { echo "uysing a shitty browser"; } else { echo "fail"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
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: 8
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
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uLdSZ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $browser, !1 = $allowedBrowsers, !2 = $badBrowsers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Mozilla%2F5.0+%28Macintosh%3B+Intel+Mac+OS+X+10_9_3%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F35.0.1916.153+Safari%2F537.36%0A'
    4     1        INIT_FCALL                                               'in_array'
          2        SEND_VAR                                                 !1
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5      > JMPZ                                                     $4, ->8
    5     6    >   ECHO                                                     'using+something+else'
          7      > JMP                                                      ->16
    7     8    >   INIT_FCALL                                               'in_array'
          9        SEND_VAR                                                 !2
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12      > JMPZ                                                     $5, ->15
    8    13    >   ECHO                                                     'uysing+a+shitty+browser'
         14      > JMP                                                      ->16
   11    15    >   ECHO                                                     'fail'
   12    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.41 ms | 1395 KiB | 15 Q