3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (preg_match( '/\b((IA|IO|A|O|D)[0-9]{6})(-*(R|revised)[\w]*)*\b/i', trim("O529012"), $matches ) ) { var_dump($matches); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/gEK28
function name:  (null)
number of ops:  13
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
    4     1        SEND_VAL                                                 '%2F%5Cb%28%28IA%7CIO%7CA%7CO%7CD%29%5B0-9%5D%7B6%7D%29%28-%2A%28R%7Crevised%29%5B%5Cw%5D%2A%29%2A%5Cb%2Fi'
    5     2        INIT_FCALL                                               'trim'
          3        SEND_VAL                                                 'O529012'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
    6     6        SEND_REF                                                 !0
          7        DO_ICALL                                         $2      
          8      > JMPZ                                                     $2, ->12
    9     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
   10    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.09 ms | 1394 KiB | 19 Q