3v4l.org

run code in 500+ PHP versions simultaneously
<?php ini_set('pcre.jit', 0); $subject = '512345678'; $failingPattern = '/^(?:[3-5789]\d{8})$/x'; $result = preg_match($failingPattern , $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/ZkeV6
function name:  (null)
number of ops:  18
compiled vars:  !0 = $subject, !1 = $failingPattern, !2 = $result, !3 = $groups
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'ini_set'
          1        SEND_VAL                                                     'pcre.jit'
          2        SEND_VAL                                                     0
          3        DO_ICALL                                                     
    4     4        ASSIGN                                                       !0, '512345678'
    6     5        ASSIGN                                                       !1, '%2F%5E%28%3F%3A%5B3-5789%5D%5Cd%7B8%7D%29%24%2Fx'
    8     6        INIT_FCALL                                                   'preg_match'
          7        SEND_VAR                                                     !1
          8        SEND_VAR                                                     !0
          9        SEND_REF                                                     !3
         10        SEND_VAL                                                     256
         11        DO_ICALL                                             $7      
         12        ASSIGN                                                       !2, $7
   10    13        INIT_FCALL                                                   'var_dump'
         14        SEND_VAR                                                     !2
         15        SEND_VAR                                                     !3
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.38 ms | 2710 KiB | 11 Q