3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = '512345678'; $pattern = '/^(?: [12]\d{6,8}| [3-57-9]\d{8}| 6\d{5,8} )$/x'; $result = preg_match($pattern, $subject, $groups, PREG_OFFSET_CAPTURE); var_dump($result, $groups);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pICqY
function name:  (null)
number of ops:  14
compiled vars:  !0 = $subject, !1 = $pattern, !2 = $result, !3 = $groups
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '512345678'
    5     1        ASSIGN                                                   !1, '%2F%5E%28%3F%3A%0A++++++++++%5B12%5D%5Cd%7B6%2C8%7D%7C%0A++++++++++%5B3-57-9%5D%5Cd%7B8%7D%7C%0A++++++++++6%5Cd%7B5%2C8%7D%0A++++++++%29%24%2Fx'
   12     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !3
          6        SEND_VAL                                                 256
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
   14     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.75 ms | 1398 KiB | 17 Q