3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sms = 'bb [url=http://youtube.com] kghkj [url=http://foo.com]'; preg_match_all('|\[url=(.*)\|id=(.*)\]|U',$sms, $arr); var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IK046
function name:  (null)
number of ops:  10
compiled vars:  !0 = $sms, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'bb+%5Burl%3Dhttp%3A%2F%2Fyoutube.com%5D+kghkj+%5Burl%3Dhttp%3A%2F%2Ffoo.com%5D'
    3     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%7C%5C%5Burl%3D%28.%2A%29%5C%7Cid%3D%28.%2A%29%5C%5D%7CU'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.38 ms | 1394 KiB | 17 Q