3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = array(); $btn = "17/08/2014"; preg_match("/^(0[1-9]|[1-2][0-9]|3[0-1])\/(0[1-9]|1[0-2])\/[0-9]{4}$/",$btn,$res); var_dump($res);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i4C92
function name:  (null)
number of ops:  11
compiled vars:  !0 = $res, !1 = $btn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, '17%2F08%2F2014'
    4     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%5E%280%5B1-9%5D%7C%5B1-2%5D%5B0-9%5D%7C3%5B0-1%5D%29%5C%2F%280%5B1-9%5D%7C1%5B0-2%5D%29%5C%2F%5B0-9%5D%7B4%7D%24%2F'
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.29 ms | 1394 KiB | 17 Q