3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Url = "https://play.google.com/store/apps/details?id=com.zing.zalo&hl=en"; preg_match("/[^?]+(?:\?id=([^&]+).*)?/", "$Url", $matches); echo $matches[1]; //com.zing.zalo
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SLkbY
function name:  (null)
number of ops:  10
compiled vars:  !0 = $Url, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.zing.zalo%26hl%3Den'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5B%5E%3F%5D%2B%28%3F%3A%5C%3Fid%3D%28%5B%5E%26%5D%2B%29.%2A%29%3F%2F'
          3        CAST                                          6  ~3      !0
          4        SEND_VAL                                                 ~3
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
    5     7        FETCH_DIM_R                                      ~5      !1, 1
          8        ECHO                                                     ~5
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.09 ms | 1397 KiB | 16 Q