3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo strtotime(str_replace('.', '-', "2014.10.09")) . "\n\r"; echo strtotime('6 month ago'); echo strtotime('3 years ago');
based on oQgqN
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/8Wqc4
function name:  (null)
number of ops:  19
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'strtotime'
         1        INIT_FCALL                                               'str_replace'
         2        SEND_VAL                                                 '.'
         3        SEND_VAL                                                 '-'
         4        SEND_VAL                                                 '2014.10.09'
         5        DO_ICALL                                         $0      
         6        SEND_VAR                                                 $0
         7        DO_ICALL                                         $1      
         8        CONCAT                                           ~2      $1, '%0A%0D'
         9        ECHO                                                     ~2
   3    10        INIT_FCALL                                               'strtotime'
        11        SEND_VAL                                                 '6+month+ago'
        12        DO_ICALL                                         $3      
        13        ECHO                                                     $3
   5    14        INIT_FCALL                                               'strtotime'
        15        SEND_VAL                                                 '3+years+ago'
        16        DO_ICALL                                         $4      
        17        ECHO                                                     $4
        18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0