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}/'; $foo = preg_match($shortBicPattern, 'COBADEFFXXX'); $bar = preg_match($longBicPattern, 'COBADEFFXXX');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z0HHb
function name:  (null)
number of ops:  13
compiled vars:  !0 = $shortBicPattern, !1 = $longBicPattern, !2 = $foo, !3 = $bar
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                                         $6      
          6        ASSIGN                                                   !2, $6
    5     7        INIT_FCALL                                               'preg_match'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 'COBADEFFXXX'
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !3, $8
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.75 ms | 1394 KiB | 15 Q