3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = '2010-10-21 54:23:65'; //$pattern = '(\d{4}(-\d{2})?(-\d{2})?( \d{2})?(:\d{2})?(:\d{2})?)'; $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/7fJUc
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-10-21+54%3A23%3A65'
    7     1        ASSIGN                                                   !1, '%28%5Cd%7B4%7D-%5Cd%7B2%7D-%5Cd%7B2%7D+%5Cd%7B2%7D%3A%5Cd%7B2%7D%28%3A%5Cd%7B2%7D%29%3F%29'
    9     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:
146.86 ms | 1385 KiB | 17 Q