3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('#Date\(([0-9]{0,10}?)([0-9]{1,3}\))#',"/Date(1403071826510)/",$matches); echo date("Y-m-d H:i:s", $matches[1]); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rFqmr
function name:  (null)
number of ops:  15
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%23Date%5C%28%28%5B0-9%5D%7B0%2C10%7D%3F%29%28%5B0-9%5D%7B1%2C3%7D%5C%29%29%23'
          2        SEND_VAL                                                 '%2FDate%281403071826510%29%2F'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          7        FETCH_DIM_R                                      ~2      !0, 1
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
    4    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.76 ms | 1394 KiB | 19 Q