3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Berlin'); echo date('c', 1477787400) . PHP_EOL; echo date('c', strtotime('+1 second', 1477787400)) . PHP_EOL; echo (strtotime('+1 second', 1477787400) - 1477787400) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b6jOH
function name:  (null)
number of ops:  27
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FBerlin'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'c'
          5        SEND_VAL                                                 1477787400
          6        DO_ICALL                                         $1      
          7        CONCAT                                           ~2      $1, '%0A'
          8        ECHO                                                     ~2
    5     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'c'
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 '%2B1+second'
         13        SEND_VAL                                                 1477787400
         14        DO_ICALL                                         $3      
         15        SEND_VAR                                                 $3
         16        DO_ICALL                                         $4      
         17        CONCAT                                           ~5      $4, '%0A'
         18        ECHO                                                     ~5
    6    19        INIT_FCALL                                               'strtotime'
         20        SEND_VAL                                                 '%2B1+second'
         21        SEND_VAL                                                 1477787400
         22        DO_ICALL                                         $6      
         23        SUB                                              ~7      $6, 1477787400
         24        CONCAT                                           ~8      ~7, '%0A'
         25        ECHO                                                     ~8
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.49 ms | 1000 KiB | 16 Q