3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rrrr=array(); var_dump( strpos($rrrr,'ray') ); if(strpos($rrrr,'VIP套餐') !== false){ echo 'aaa'; }else{ echo 'bbb'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o5Yc9
function name:  (null)
number of ops:  18
compiled vars:  !0 = $rrrr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'ray'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'strpos'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'VIP%E5%A5%97%E9%A4%90'
         11        DO_ICALL                                         $4      
         12        TYPE_CHECK                                  1018          $4
         13      > JMPZ                                                     ~5, ->16
    5    14    >   ECHO                                                     'aaa'
         15      > JMP                                                      ->17
    7    16    >   ECHO                                                     'bbb'
    8    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.33 ms | 1395 KiB | 17 Q