3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = '512345678'; $failingPattern = '/^(?:[3-5789]\d{8})$/x'; $result = preg_match($failingPattern , $subject, $groups); var_dump($result, $groups);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4slie
function name:  (null)
number of ops:  13
compiled vars:  !0 = $subject, !1 = $failingPattern, !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%5B3-5789%5D%5Cd%7B8%7D%29%24%2Fx'
    7     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !3
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    9     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.4 ms | 1394 KiB | 17 Q