3v4l.org

run code in 500+ 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'); $t3 = strtotime('23:00:00'); echo date('r', $t1) . ' / ' . date('r', $t2) . ' / ' . date('r', $t3) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 39
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 39
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
filename:       /in/8OBFo
function name:  (null)
number of ops:  41
compiled vars:  !0 = $time_zones, !1 = $time_zone, !2 = $t1, !3 = $t2, !4 = $t3
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    8     1      > FE_RESET_R                                           $6      !0, ->39
          2    > > FE_FETCH_R                                                   $6, !1, ->39
    9     3    >   INIT_FCALL                                                   'date_default_timezone_set'
          4        SEND_VAR                                                     !1
          5        DO_ICALL                                                     
   10     6        INIT_FCALL                                                   'mktime'
          7        SEND_VAL                                                     23
          8        SEND_VAL                                                     0
          9        SEND_VAL                                                     0
         10        DO_ICALL                                             $8      
         11        ASSIGN                                                       !2, $8
   11    12        INIT_FCALL                                                   'strtotime'
         13        SEND_VAL                                                     'today+23%3A00%3A00'
         14        DO_ICALL                                             $10     
         15        ASSIGN                                                       !3, $10
   12    16        INIT_FCALL                                                   'strtotime'
         17        SEND_VAL                                                     '23%3A00%3A00'
         18        DO_ICALL                                             $12     
         19        ASSIGN                                                       !4, $12
   13    20        INIT_FCALL                                                   'date'
         21        SEND_VAL                                                     'r'
         22        SEND_VAR                                                     !2
         23        DO_ICALL                                             $14     
         24        CONCAT                                               ~15     $14, '+%2F+'
         25        INIT_FCALL                                                   'date'
         26        SEND_VAL                                                     'r'
         27        SEND_VAR                                                     !3
         28        DO_ICALL                                             $16     
         29        CONCAT                                               ~17     ~15, $16
         30        CONCAT                                               ~18     ~17, '+%2F+'
         31        INIT_FCALL                                                   'date'
         32        SEND_VAL                                                     'r'
         33        SEND_VAR                                                     !4
         34        DO_ICALL                                             $19     
         35        CONCAT                                               ~20     ~18, $19
         36        CONCAT                                               ~21     ~20, '%0A'
         37        ECHO                                                         ~21
    8    38      > JMP                                                          ->2
         39    >   FE_FREE                                                      $6
   14    40      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.47 ms | 2666 KiB | 17 Q