3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = 'Ingress Intel Map https://www.ingress.com/intel?ll=55.756471,37.122987&z=17&pll=55.756471,37.122987'; $pat_portal = '/intel\?([a-z0-9\=\.\,\&]+)pll=(\d+.\d+),(\d+.\d+)$/'; $pat_location = 'intel\?ll=(\d+.\d+),(\d+.\d+)&z=(\d+)/'; if(preg_match($pat_portal, $subject, $matches)){ echo "портал: lat - {$matches[1]} , lng - {$matches[2]}"; }elseif(preg_match($pat_location, $subject, $matches)){ echo "локация: lat - {$matches[0]} , lng - {$matches[1]} , zoom - {$matches[2]}"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 33
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/dJqXU
function name:  (null)
number of ops:  34
compiled vars:  !0 = $subject, !1 = $pat_portal, !2 = $pat_location, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Ingress+Intel+Map%0Ahttps%3A%2F%2Fwww.ingress.com%2Fintel%3Fll%3D55.756471%2C37.122987%26z%3D17%26pll%3D55.756471%2C37.122987'
    6     1        ASSIGN                                                   !1, '%2Fintel%5C%3F%28%5Ba-z0-9%5C%3D%5C.%5C%2C%5C%26%5D%2B%29pll%3D%28%5Cd%2B.%5Cd%2B%29%2C%28%5Cd%2B.%5Cd%2B%29%24%2F'
    7     2        ASSIGN                                                   !2, 'intel%5C%3Fll%3D%28%5Cd%2B.%5Cd%2B%29%2C%28%5Cd%2B.%5Cd%2B%29%26z%3D%28%5Cd%2B%29%2F'
    9     3        INIT_FCALL                                               'preg_match'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        SEND_REF                                                 !3
          7        DO_ICALL                                         $7      
          8      > JMPZ                                                     $7, ->17
   10     9    >   ROPE_INIT                                     4  ~11     '%D0%BF%D0%BE%D1%80%D1%82%D0%B0%D0%BB%3A+lat+-+'
         10        FETCH_DIM_R                                      ~8      !3, 1
         11        ROPE_ADD                                      1  ~11     ~11, ~8
         12        ROPE_ADD                                      2  ~11     ~11, '+%2C+lng+-+'
         13        FETCH_DIM_R                                      ~9      !3, 2
         14        ROPE_END                                      3  ~10     ~11, ~9
         15        ECHO                                                     ~10
         16      > JMP                                                      ->33
   11    17    >   INIT_FCALL                                               'preg_match'
         18        SEND_VAR                                                 !2
         19        SEND_VAR                                                 !0
         20        SEND_REF                                                 !3
         21        DO_ICALL                                         $13     
         22      > JMPZ                                                     $13, ->33
   12    23    >   ROPE_INIT                                     6  ~18     '%D0%BB%D0%BE%D0%BA%D0%B0%D1%86%D0%B8%D1%8F%3A+lat+-+'
         24        FETCH_DIM_R                                      ~14     !3, 0
         25        ROPE_ADD                                      1  ~18     ~18, ~14
         26        ROPE_ADD                                      2  ~18     ~18, '+%2C+lng+-+'
         27        FETCH_DIM_R                                      ~15     !3, 1
         28        ROPE_ADD                                      3  ~18     ~18, ~15
         29        ROPE_ADD                                      4  ~18     ~18, '+%2C+zoom+-+'
         30        FETCH_DIM_R                                      ~16     !3, 2
         31        ROPE_END                                      5  ~17     ~18, ~16
         32        ECHO                                                     ~17
   15    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.66 ms | 1396 KiB | 15 Q