3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reg = '/twitter.com/(\w+)/'; $web = 'http://twitter.com/dcavuotti'; $arrMatches = array(); if (preg_match($reg,$web, $arrMatches)){ var_dump($arrMatches); }
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/sXlaf
function name:  (null)
number of ops:  13
compiled vars:  !0 = $reg, !1 = $web, !2 = $arrMatches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Ftwitter.com%2F%28%5Cw%2B%29%2F'
    4     1        ASSIGN                                                   !1, 'http%3A%2F%2Ftwitter.com%2Fdcavuotti'
    5     2        ASSIGN                                                   !2, <array>
    6     3        INIT_FCALL                                               'preg_match'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_REF                                                 !2
          7        DO_ICALL                                         $6      
          8      > JMPZ                                                     $6, ->12
    8     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    9    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.28 ms | 1385 KiB | 17 Q