3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://weibo.com/1948452141/BAlOHzDS3?ref=home&rid=7_0_2598638016537367410'; $pattern = "/.*weibo.com\/\d+\/(\w+)\?.*/"; preg_match_all($pattern, $url, $arr); print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vJ6hR
function name:  (null)
number of ops:  11
compiled vars:  !0 = $url, !1 = $pattern, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fweibo.com%2F1948452141%2FBAlOHzDS3%3Fref%3Dhome%26rid%3D7_0_2598638016537367410'
    4     1        ASSIGN                                                   !1, '%2F.%2Aweibo.com%5C%2F%5Cd%2B%5C%2F%28%5Cw%2B%29%5C%3F.%2A%2F'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.33 ms | 1385 KiB | 17 Q