3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $timezone = 'America/Los_Angeles'; $midnight = strtotime('midnight tomorrow' . $timezone); echo('Pacific Midnight + 1: ' . date('c', $midnight + 60));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h6IpT
function name:  (null)
number of ops:  17
compiled vars:  !0 = $timezone, !1 = $midnight
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'UTC'
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, 'America%2FLos_Angeles'
    4     4        INIT_FCALL                                               'strtotime'
          5        CONCAT                                           ~4      'midnight+tomorrow', !0
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    6     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'c'
         11        ADD                                              ~7      !1, 60
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                         $8      
         14        CONCAT                                           ~9      'Pacific+Midnight+%2B+1%3A+', $8
         15        ECHO                                                     ~9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.59 ms | 1394 KiB | 19 Q