3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('~\d{4,8}\sруб\b~', '50000 рублей', $rg), $rg);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ar6RE
function name:  (null)
number of ops:  10
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%5Cd%7B4%2C8%7D%5Cs%D1%80%D1%83%D0%B1%5Cb%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                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.41 ms | 1394 KiB | 17 Q