3v4l.org

run code in 300+ PHP versions simultaneously
<?php $browser = "Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16"; $string = strripos($browser, 'Opera'); if ($string=== false) { echo "Geen Opera"; } else { echo "Wel Opera"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cHC1V
function name:  (null)
number of ops:  12
compiled vars:  !0 = $browser, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Opera%2F9.80+%28X11%3B+Linux+i686%3B+Ubuntu%2F14.10%29+Presto%2F2.12.388+Version%2F12.16'
    4     1        INIT_FCALL                                               'strripos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'Opera'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        TYPE_CHECK                                    4          !1
          7      > JMPZ                                                     ~5, ->10
    6     8    >   ECHO                                                     'Geen+Opera'
    5     9      > JMP                                                      ->11
    8    10    >   ECHO                                                     'Wel+Opera'
   10    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.24 ms | 1444 KiB | 14 Q