3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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/fsmZ6
function name:  (null)
number of ops:  14
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%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        SEND_VAL                                                 256
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    9     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:
174.09 ms | 1394 KiB | 17 Q