3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = '2010-05-29 15:54:54'; $pattern = '(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}?)'; var_dump(preg_match($pattern, $value));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nEB4E
function name:  (null)
number of ops:  10
compiled vars:  !0 = $value, !1 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2010-05-29+15%3A54%3A54'
    5     1        ASSIGN                                                   !1, '%28%5Cd%7B4%7D-%5Cd%7B2%7D-%5Cd%7B2%7D+%5Cd%7B2%7D%3A%5Cd%7B2%7D%3A%5Cd%7B2%7D%3F%29'
    7     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_match'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.42 ms | 1385 KiB | 17 Q