3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_zones = array( 'America/Chicago', 'GMT', 'Europe/Berlin', ); foreach($time_zones as $time_zone){ date_default_timezone_set($time_zone); $t1 = mktime(23, 0, 0); $t2 = strtotime('today 23:00:00'); echo date('r', $t1) . ' / ' . date('r', $t2) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 29
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 29
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/frfbb
function name:  (null)
number of ops:  31
compiled vars:  !0 = $time_zones, !1 = $time_zone, !2 = $t1, !3 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1      > FE_RESET_R                                       $5      !0, ->29
          2    > > FE_FETCH_R                                               $5, !1, ->29
   10     3    >   INIT_FCALL                                               'date_default_timezone_set'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
   11     6        INIT_FCALL                                               'mktime'
          7        SEND_VAL                                                 23
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 0
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
   12    12        INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 'today+23%3A00%3A00'
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !3, $9
   13    16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'r'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $11     
         20        CONCAT                                           ~12     $11, '+%2F+'
         21        INIT_FCALL                                               'date'
         22        SEND_VAL                                                 'r'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $13     
         25        CONCAT                                           ~14     ~12, $13
         26        CONCAT                                           ~15     ~14, '%0A'
         27        ECHO                                                     ~15
    9    28      > JMP                                                      ->2
         29    >   FE_FREE                                                  $5
   14    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.62 ms | 1396 KiB | 21 Q