3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (preg_match('/(Sony Ericsson)( (v|Windows|XPERIA))?/', 'Sony Ericsson x600', $m) && empty($m[3]) ) { echo 'cont'; } else { var_dump($m); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/Z6lLg
function name:  (null)
number of ops:  15
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%28Sony+Ericsson%29%28+%28v%7CWindows%7CXPERIA%29%29%3F%2F'
          2        SEND_VAL                                                 'Sony+Ericsson+x600'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $1      
          5      > JMPZ_EX                                          ~2      $1, ->8
    4     6    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~3      !0, 3
          7        BOOL                                             ~2      ~3
          8    > > JMPZ                                                     ~2, ->11
    6     9    >   ECHO                                                     'cont'
         10      > JMP                                                      ->14
    8    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    9    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.84 ms | 1399 KiB | 17 Q