3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "http://www.google.co.in/#hl=en&gs_rn=12&gs_ri=psy-ab&pq=bus%20online%20booking&cp=8&gs_id=20&xhr=t&q=redbus+offer+code&es_nrs=true&pf=p&sclient=psy-ab&oq=redbus+o&gs_l=&pbx=1&bav=on.2,or.r_qf.&bvm=bv.45960087,d.bmk&fp=e8cb228a72cb543b&biw=1280&bih=685"; $string = "http://www.google.co.in/#hl=en&gs_rn=12&gs_ri=psy-ab&pq=bus%20online%20booking&cp=8&gs_id=20&xhr=t&q=redbus+offer+code&es_nrs=true&pf=p&sclient=psy-ab&oq=redbus+o&gs_l=&pbx=1&bav=on.2,or.r_qf.&bvm=bv.45960087,d.bmk&fp=e8cb228a72cb543b&biw=1280&bih=685"; var_dump(parse_url($string)); $regex = "/q=(.*?)&/"; preg_match($regex, $string, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sii4h
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $regex, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.google.co.in%2F%23hl%3Den%26gs_rn%3D12%26gs_ri%3Dpsy-ab%26pq%3Dbus%2520online%2520booking%26cp%3D8%26gs_id%3D20%26xhr%3Dt%26q%3Dredbus%2Boffer%2Bcode%26es_nrs%3Dtrue%26pf%3Dp%26sclient%3Dpsy-ab%26oq%3Dredbus%2Bo%26gs_l%3D%26pbx%3D1%26bav%3Don.2%2Cor.r_qf.%26bvm%3Dbv.45960087%2Cd.bmk%26fp%3De8cb228a72cb543b%26biw%3D1280%26bih%3D685'
    5     1        ASSIGN                                                   !0, 'http%3A%2F%2Fwww.google.co.in%2F%23hl%3Den%26gs_rn%3D12%26gs_ri%3Dpsy-ab%26pq%3Dbus%2520online%2520booking%26cp%3D8%26gs_id%3D20%26xhr%3Dt%26q%3Dredbus%2Boffer%2Bcode%26es_nrs%3Dtrue%26pf%3Dp%26sclient%3Dpsy-ab%26oq%3Dredbus%2Bo%26gs_l%3D%26pbx%3D1%26bav%3Don.2%2Cor.r_qf.%26bvm%3Dbv.45960087%2Cd.bmk%26fp%3De8cb228a72cb543b%26biw%3D1280%26bih%3D685'
    7     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'parse_url'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        SEND_VAR                                                 $5
          7        DO_ICALL                                                 
    9     8        ASSIGN                                                   !1, '%2Fq%3D%28.%2A%3F%29%26%2F'
   11     9        INIT_FCALL                                               'preg_match'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !0
         12        SEND_REF                                                 !2
         13        DO_ICALL                                                 
   13    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.15 ms | 1399 KiB | 20 Q