3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'with dash and msec: ' . strtotime('2017-03-21-10:58:01.7888')."\n"; echo 'with space and msec: ' . strtotime('2017-03-21 10:58:01.7888')."\n"; echo 'with dash and no msec: ' . strtotime('2017-03-21-10:58:01')."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RuIOJ
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2017-03-21-10%3A58%3A01.7888'
          2        DO_ICALL                                         $0      
          3        CONCAT                                           ~1      'with+dash+and+msec%3A+', $0
          4        CONCAT                                           ~2      ~1, '%0A'
          5        ECHO                                                     ~2
    4     6        INIT_FCALL                                               'strtotime'
          7        SEND_VAL                                                 '2017-03-21+10%3A58%3A01.7888'
          8        DO_ICALL                                         $3      
          9        CONCAT                                           ~4      'with+space+and+msec%3A+', $3
         10        CONCAT                                           ~5      ~4, '%0A'
         11        ECHO                                                     ~5
    5    12        INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 '2017-03-21-10%3A58%3A01'
         14        DO_ICALL                                         $6      
         15        CONCAT                                           ~7      'with+dash+and+no+msec%3A+', $6
         16        CONCAT                                           ~8      ~7, '%0A'
         17        ECHO                                                     ~8
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.08 ms | 1004 KiB | 14 Q