3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/^((0[0-9])|(1\d)|(2\d)|(3[0-1]))/((0[0-9])|(1[0-2]))/(\d{4})$/', '12/03/2014', $matches); echo '<pre>'.print_r($matches, true).'</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CCAer
function name:  (null)
number of ops:  13
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%5E%28%280%5B0-9%5D%29%7C%281%5Cd%29%7C%282%5Cd%29%7C%283%5B0-1%5D%29%29%2F%28%280%5B0-9%5D%29%7C%281%5B0-2%5D%29%29%2F%28%5Cd%7B4%7D%29%24%2F'
          2        SEND_VAL                                                 '12%2F03%2F2014'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $2      
          9        CONCAT                                           ~3      '%3Cpre%3E', $2
         10        CONCAT                                           ~4      ~3, '%3C%2Fpre%3E'
         11        ECHO                                                     ~4
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.29 ms | 1385 KiB | 17 Q