3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('~(\d{4,8}\s(руб|рублей))~', '50000 рублей', $rg), $rg); var_dump(preg_match('~(\d{4,8}\s(рублей|руб))~', '50000 рублей', $rg), $rg);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZJdsD
function name:  (null)
number of ops:  19
compiled vars:  !0 = $rg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%28%5Cd%7B4%2C8%7D%5Cs%28%D1%80%D1%83%D0%B1%7C%D1%80%D1%83%D0%B1%D0%BB%D0%B5%D0%B9%29%29%7E'
          3        SEND_VAL                                                 '50000+%D1%80%D1%83%D0%B1%D0%BB%D0%B5%D0%B9'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    3     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'preg_match'
         11        SEND_VAL                                                 '%7E%28%5Cd%7B4%2C8%7D%5Cs%28%D1%80%D1%83%D0%B1%D0%BB%D0%B5%D0%B9%7C%D1%80%D1%83%D0%B1%29%29%7E'
         12        SEND_VAL                                                 '50000+%D1%80%D1%83%D0%B1%D0%BB%D0%B5%D0%B9'
         13        SEND_REF                                                 !0
         14        DO_ICALL                                         $3      
         15        SEND_VAR                                                 $3
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.7 ms | 1395 KiB | 17 Q