3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.8 ms | 1395 KiB | 19 Q