3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern='(?:^(?:(?<a>(?:(?:[0-9]|[1-9][0-9]|1[0-7][0-9]))|(?:(?:[0-9]|[1-9][0-9]|1[0-7][0-9])\.\d)|180)!(?<b>(?:(?:[0-9]|[1-9][0-9]|[1-3][0-5][0-9]))|(?:(?:[0-9]|[1-9][0-9]|[1-3][0-5][0-9])\.\d)|360)!(?<c>-?(?:(?:(?:[0-8]|[1-8][0-9]))|(?:(?:[0-9]|[1-8][0-9])\.\d)|90)))$)'; $subject='123!360!-12.3'; preg_match('/' . $pattern . '/', $subject, $array); if(!empty($array)) var_dump($array['a'], $array['b'], $array['c']);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/Ojrqd
function name:  (null)
number of ops:  21
compiled vars:  !0 = $pattern, !1 = $subject, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%28%3F%3A%5E%28%3F%3A%28%3F%3Ca%3E%28%3F%3A%28%3F%3A%5B0-9%5D%7C%5B1-9%5D%5B0-9%5D%7C1%5B0-7%5D%5B0-9%5D%29%29%7C%28%3F%3A%28%3F%3A%5B0-9%5D%7C%5B1-9%5D%5B0-9%5D%7C1%5B0-7%5D%5B0-9%5D%29%5C.%5Cd%29%7C180%29%21%28%3F%3Cb%3E%28%3F%3A%28%3F%3A%5B0-9%5D%7C%5B1-9%5D%5B0-9%5D%7C%5B1-3%5D%5B0-5%5D%5B0-9%5D%29%29%7C%28%3F%3A%28%3F%3A%5B0-9%5D%7C%5B1-9%5D%5B0-9%5D%7C%5B1-3%5D%5B0-5%5D%5B0-9%5D%29%5C.%5Cd%29%7C360%29%21%28%3F%3Cc%3E-%3F%28%3F%3A%28%3F%3A%28%3F%3A%5B0-8%5D%7C%5B1-8%5D%5B0-9%5D%29%29%7C%28%3F%3A%28%3F%3A%5B0-9%5D%7C%5B1-8%5D%5B0-9%5D%29%5C.%5Cd%29%7C90%29%29%29%24%29'
    3     1        ASSIGN                                                   !1, '123%21360%21-12.3'
    4     2        INIT_FCALL                                               'preg_match'
          3        CONCAT                                           ~5      '%2F', !0
          4        CONCAT                                           ~6      ~5, '%2F'
          5        SEND_VAL                                                 ~6
          6        SEND_VAR                                                 !1
          7        SEND_REF                                                 !2
          8        DO_ICALL                                                 
    5     9        ISSET_ISEMPTY_CV                                 ~8      !2
         10        BOOL_NOT                                         ~9      ~8
         11      > JMPZ                                                     ~9, ->20
         12    >   INIT_FCALL                                               'var_dump'
         13        FETCH_DIM_R                                      ~10     !2, 'a'
         14        SEND_VAL                                                 ~10
         15        FETCH_DIM_R                                      ~11     !2, 'b'
         16        SEND_VAL                                                 ~11
         17        FETCH_DIM_R                                      ~12     !2, 'c'
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                                 
         20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.03 ms | 1001 KiB | 15 Q