3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/London'); $date = strtotime('+7 days 23:59:59'); echo $date.PHP_EOL; echo date('Y-m-d H:i:s', $date).PHP_EOL; $date = strtotime('today'); echo $date .PHP_EOL; echo date('Y-m-d H:i:s', $date) .PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5it7K
function name:  (null)
number of ops:  28
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FLondon'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '%2B7+days+23%3A59%3A59'
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    6     7        CONCAT                                           ~4      !0, '%0A'
          8        ECHO                                                     ~4
    7     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        CONCAT                                           ~6      $5, '%0A'
         14        ECHO                                                     ~6
    9    15        INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 'today'
         17        DO_ICALL                                         $7      
         18        ASSIGN                                                   !0, $7
   10    19        CONCAT                                           ~9      !0, '%0A'
         20        ECHO                                                     ~9
   11    21        INIT_FCALL                                               'date'
         22        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $10     
         25        CONCAT                                           ~11     $10, '%0A'
         26        ECHO                                                     ~11
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.56 ms | 1395 KiB | 19 Q