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(' + 2 sec')); 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/pHWNq
function name:  (null)
number of ops:  20
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        SEND_VAL                                                 '+%2B+2+sec'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
    4     9        ECHO                                                     '%0A%0D'
    5    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         12        INIT_FCALL                                               'strtotime'
         13        CONCAT                                           ~4      !0, '+%2B+2+days'
         14        SEND_VAL                                                 ~4
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                         $6      
         18        ECHO                                                     $6
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.65 ms | 1395 KiB | 17 Q