3v4l.org

run code in 300+ PHP versions simultaneously
<?php $blah = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)'; if (preg_match('/MSIE ([0-9]*(?:\\.[0-9]*)?)([0-9.]*);/', $blah, $matches)){ var_dump($matches); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/XMnaB
function name:  (null)
number of ops:  11
compiled vars:  !0 = $blah, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Mozilla%2F5.0+%28compatible%3B+MSIE+10.0%3B+Windows+NT+6.2%3B+Trident%2F6.0%29'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2FMSIE+%28%5B0-9%5D%2A%28%3F%3A%5C.%5B0-9%5D%2A%29%3F%29%28%5B0-9.%5D%2A%29%3B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->10
    4     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    5    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.16 ms | 1394 KiB | 17 Q