3v4l.org

run code in 500+ PHP versions simultaneously
<?php date_default_timezone_set("Asia/Tehran"); for ($y = 2000; $y <= 2018; $y++) { echo $y, ": ", (new DateTime("{$y}-03-22 01:00:00"))->diff(new DateTime("{$y}-03-23 01:00:00"))->format("%a d %h h %i m %s s\n"); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 5
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 5
Branch analysis from position: 27
Branch analysis from position: 5
filename:       /in/4thuL
function name:  (null)
number of ops:  28
compiled vars:  !0 = $y
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'date_default_timezone_set'
          1        SEND_VAL                                                     'Asia%2FTehran'
          2        DO_ICALL                                                     
    5     3        ASSIGN                                                       !0, 2000
          4      > JMP                                                          ->25
    6     5    >   ECHO                                                         !0
          6        ECHO                                                         '%3A+'
          7        NEW                                                  $3      'DateTime'
          8        NOP                                                          
          9        FAST_CONCAT                                          ~4      !0, '-03-22+01%3A00%3A00'
         10        SEND_VAL_EX                                                  ~4
         11        DO_FCALL                                          0          
         12        INIT_METHOD_CALL                                             $3, 'diff'
         13        NEW                                                  $6      'DateTime'
         14        NOP                                                          
         15        FAST_CONCAT                                          ~7      !0, '-03-23+01%3A00%3A00'
         16        SEND_VAL_EX                                                  ~7
         17        DO_FCALL                                          0          
         18        SEND_VAR_NO_REF_EX                                           $6
         19        DO_FCALL                                          0  $9      
         20        INIT_METHOD_CALL                                             $9, 'format'
         21        SEND_VAL_EX                                                  '%25a+d+%25h+h+%25i+m+%25s+s%0A'
         22        DO_FCALL                                          0  $10     
         23        ECHO                                                         $10
    5    24        PRE_INC                                                      !0
         25    >   IS_SMALLER_OR_EQUAL                                          !0, 2018
         26      > JMPNZ                                                        ~12, ->5
    7    27    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
216.64 ms | 2121 KiB | 9 Q