3v4l.org

run code in 300+ PHP versions simultaneously
<?php if( preg_match( '#.+?(\d+)$#', ' https://vimeo.com/channels/976510/videos/rss ', $matches )) { $url = 'http://vimeo.com/' . $matches[1]; //$url contain your desired pattern } echo $urlș ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/WOuSY
function name:  (null)
number of ops:  11
compiled vars:  !0 = $matches, !1 = $url, !2 = $urlș
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%23.%2B%3F%28%5Cd%2B%29%24%23'
          2        SEND_VAL                                                 '+https%3A%2F%2Fvimeo.com%2Fchannels%2F976510%2Fvideos%2Frss+'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $3      
          5      > JMPZ                                                     $3, ->9
    4     6    >   FETCH_DIM_R                                      ~4      !0, 1
          7        CONCAT                                           ~5      'http%3A%2F%2Fvimeo.com%2F', ~4
          8        ASSIGN                                                   !1, ~5
    7     9    >   ECHO                                                     !2
    8    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.23 ms | 1394 KiB | 15 Q