3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<a href="http://www.amazon.com/dp/B004JKDN3I/?tag=longshan07-20" target="_blank">Amazon</a>上目前价格降至$160.59'; preg_match('@href=".*?/(dp|product)/(.*)(/|%3F|\?)"@',$content,$m); print_r($m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tHutM
function name:  (null)
number of ops:  10
compiled vars:  !0 = $content, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ca+href%3D%22http%3A%2F%2Fwww.amazon.com%2Fdp%2FB004JKDN3I%2F%3Ftag%3Dlongshan07-20%22+target%3D%22_blank%22%3EAmazon%3C%2Fa%3E%E4%B8%8A%E7%9B%AE%E5%89%8D%E4%BB%B7%E6%A0%BC%E9%99%8D%E8%87%B3%24160.59'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%40href%3D%22.%2A%3F%2F%28dp%7Cproduct%29%2F%28.%2A%29%28%2F%7C%253F%7C%5C%3F%29%22%40'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.55 ms | 1385 KiB | 17 Q