3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(date_default_timezone_get()); for ($y = 1970; $y <= 2020; $y++) { $dt = DateTime::createFromFormat("Y", $y); $date = $dt->format("Y-m-d H:i:s"); $isL = $dt->format("L"); print "$y :: $date :: $isL\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 7
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 7
Branch analysis from position: 30
Branch analysis from position: 7
filename:       /in/Z38gl
function name:  (null)
number of ops:  31
compiled vars:  !0 = $y, !1 = $dt, !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                                                      ->28
    6     7    >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          8        SEND_VAL                                                 'Y'
          9        SEND_VAR                                                 !0
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !1, $7
    7    12        INIT_METHOD_CALL                                         !1, 'format'
         13        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         14        DO_FCALL                                      0  $9      
         15        ASSIGN                                                   !2, $9
    8    16        INIT_METHOD_CALL                                         !1, 'format'
         17        SEND_VAL_EX                                              'L'
         18        DO_FCALL                                      0  $11     
         19        ASSIGN                                                   !3, $11
    9    20        ROPE_INIT                                     6  ~14     !0
         21        ROPE_ADD                                      1  ~14     ~14, '+%3A%3A+'
         22        ROPE_ADD                                      2  ~14     ~14, !2
         23        ROPE_ADD                                      3  ~14     ~14, '+%3A%3A+'
         24        ROPE_ADD                                      4  ~14     ~14, !3
         25        ROPE_END                                      5  ~13     ~14, '%0A'
         26        ECHO                                                     ~13
    5    27        PRE_INC                                                  !0
         28    >   IS_SMALLER_OR_EQUAL                                      !0, 2020
         29      > JMPNZ                                                    ~18, ->7
   10    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.72 ms | 1404 KiB | 18 Q