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.]*);/', $_SERVER['HTTP_USER_AGENT'], $matches)){ var_dump($matches); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/T0DiZ
function name:  (null)
number of ops:  13
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        FETCH_R                      global              ~3      '_SERVER'
          4        FETCH_DIM_R                                      ~4      ~3, 'HTTP_USER_AGENT'
          5        SEND_VAL                                                 ~4
          6        SEND_REF                                                 !1
          7        DO_ICALL                                         $5      
          8      > JMPZ                                                     $5, ->12
    4     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    5    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.14 ms | 1394 KiB | 17 Q