3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_zone = 'Europe/Warsaw'; date_default_timezone_set($time_zone); $iluoDates = array( '2013-10-27 01:00:00', ); $ecDates = array( '2013-10-27 02:00:00', ); foreach ($ecDates as $id => $date) { $time = strtotime($date); date_default_timezone_set('UTC'); $ecDates[$id] = date("Y-m-d H:i:s", $time); date_default_timezone_set($time_zone); } echo $iluoDates[0]."\n"; echo $ecDates[0];
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 26
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 26
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/ZpvnE
function name:  (null)
number of ops:  33
compiled vars:  !0 = $time_zone, !1 = $iluoDates, !2 = $ecDates, !3 = $date, !4 = $id, !5 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Europe%2FWarsaw'
    3     1        INIT_FCALL                                               'date_default_timezone_set'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !1, <array>
    8     5        ASSIGN                                                   !2, <array>
   12     6      > FE_RESET_R                                       $10     !2, ->26
          7    > > FE_FETCH_R                                       ~11     $10, !3, ->26
          8    >   ASSIGN                                                   !4, ~11
   13     9        INIT_FCALL                                               'strtotime'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $13     
         12        ASSIGN                                                   !5, $13
   14    13        INIT_FCALL                                               'date_default_timezone_set'
         14        SEND_VAL                                                 'UTC'
         15        DO_ICALL                                                 
   15    16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         18        SEND_VAR                                                 !5
         19        DO_ICALL                                         $17     
         20        ASSIGN_DIM                                               !2, !4
         21        OP_DATA                                                  $17
   16    22        INIT_FCALL                                               'date_default_timezone_set'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
   12    25      > JMP                                                      ->7
         26    >   FE_FREE                                                  $10
   18    27        FETCH_DIM_R                                      ~19     !1, 0
         28        CONCAT                                           ~20     ~19, '%0A'
         29        ECHO                                                     ~20
   19    30        FETCH_DIM_R                                      ~21     !2, 0
         31        ECHO                                                     ~21
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.38 ms | 1388 KiB | 19 Q