3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datetime = '2014-11-10-16.14.18'; $datetime = preg_replace('#\d+-\d+-\d+(-)\d+\.\d+\.d+#', ' ', $datetime); var_dump($datetime);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/II78p
function name:  (null)
number of ops:  11
compiled vars:  !0 = $datetime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2014-11-10-16.14.18'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%5Cd%2B-%5Cd%2B-%5Cd%2B%28-%29%5Cd%2B%5C.%5Cd%2B%5C.d%2B%23'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    6     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:
165.94 ms | 1394 KiB | 17 Q