3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(date_default_timezone_get()); for ($y = 1970; $y <= 2020; $y++) { $ts = strtotime((string) $y); $date = date("Y-m-d H:i:s", $ts); $isL = date("L", $ts); print "$y :: $date :: $isL\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 7
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 7
Branch analysis from position: 32
Branch analysis from position: 7
filename:       /in/57h2S
function name:  (null)
number of ops:  33
compiled vars:  !0 = $y, !1 = $ts, !2 = $date, !3 = $isL
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'date_default_timezone_get'
          2        DO_ICALL                                         $4      
          3        SEND_VAR                                                 $4
          4        DO_ICALL                                                 
    5     5        ASSIGN                                                   !0, 1970
          6      > JMP                                                      ->30
    6     7    >   INIT_FCALL                                               'strtotime'
          8        CAST                                          6  ~7      !0
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !1, $8
    7    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !2, $10
    8    17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'L'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $12     
         21        ASSIGN                                                   !3, $12
    9    22        ROPE_INIT                                     6  ~15     !0
         23        ROPE_ADD                                      1  ~15     ~15, '+%3A%3A+'
         24        ROPE_ADD                                      2  ~15     ~15, !2
         25        ROPE_ADD                                      3  ~15     ~15, '+%3A%3A+'
         26        ROPE_ADD                                      4  ~15     ~15, !3
         27        ROPE_END                                      5  ~14     ~15, '%0A'
         28        ECHO                                                     ~14
    5    29        PRE_INC                                                  !0
         30    >   IS_SMALLER_OR_EQUAL                                      !0, 2020
         31      > JMPNZ                                                    ~19, ->7
   10    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.05 ms | 1401 KiB | 21 Q