3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strtotime(str_replace('.', '-', "2014.10.09")) . "\n\r"; echo strtotime('6 month ago') . "\n\r"; echo strtotime('3 years ago') . "\n\r"; echo str_replace('.', '-', "2014.10.09") . "\n\r";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BVWtT
function name:  (null)
number of ops:  28
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        CONCAT                                           ~4      $3, '%0A%0D'
         14        ECHO                                                     ~4
    5    15        INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 '3+years+ago'
         17        DO_ICALL                                         $5      
         18        CONCAT                                           ~6      $5, '%0A%0D'
         19        ECHO                                                     ~6
    7    20        INIT_FCALL                                               'str_replace'
         21        SEND_VAL                                                 '.'
         22        SEND_VAL                                                 '-'
         23        SEND_VAL                                                 '2014.10.09'
         24        DO_ICALL                                         $7      
         25        CONCAT                                           ~8      $7, '%0A%0D'
         26        ECHO                                                     ~8
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.08 ms | 1395 KiB | 17 Q