3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Date = "2010-09-17 12:30:00"; echo date('Y-m-d H:i:s', strtotime($Date. ' + 2 min')); echo "\n\r"; echo date('Y-m-d H:i:s', strtotime($Date. ' + 2 days'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1UP3K
function name:  (null)
number of ops:  21
compiled vars:  !0 = $Date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2010-09-17+12%3A30%3A00'
    3     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          3        INIT_FCALL                                               'strtotime'
          4        CONCAT                                           ~2      !0, '+%2B+2+min'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ECHO                                                     $4
    4    10        ECHO                                                     '%0A%0D'
    5    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         13        INIT_FCALL                                               'strtotime'
         14        CONCAT                                           ~5      !0, '+%2B+2+days'
         15        SEND_VAL                                                 ~5
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                         $7      
         19        ECHO                                                     $7
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.58 ms | 1395 KiB | 17 Q