3v4l.org

run code in 300+ PHP versions simultaneously
<?php $shortBicPattern = '/^[A-Z]{6}[A-Z0-9]{2}$/'; $longBicPattern = '/[A-Z]{6}[A-Z0-9]{2}[A-Z0-9]{3}/'; echo preg_match($shortBicPattern, 'COBADEFFXXX'); echo preg_match($longBicPattern, 'COBADEFFXXX');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QQZ2b
function name:  (null)
number of ops:  13
compiled vars:  !0 = $shortBicPattern, !1 = $longBicPattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%5E%5BA-Z%5D%7B6%7D%5BA-Z0-9%5D%7B2%7D%24%2F'
    3     1        ASSIGN                                                   !1, '%2F%5BA-Z%5D%7B6%7D%5BA-Z0-9%5D%7B2%7D%5BA-Z0-9%5D%7B3%7D%2F'
    4     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'COBADEFFXXX'
          5        DO_ICALL                                         $4      
          6        ECHO                                                     $4
    5     7        INIT_FCALL                                               'preg_match'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 'COBADEFFXXX'
         10        DO_ICALL                                         $5      
         11        ECHO                                                     $5
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.83 ms | 1394 KiB | 15 Q