3v4l.org

run code in 300+ PHP versions simultaneously
<?php // In the beginning there are no Sundays counted yet $number_of_sundays = 0; // Make the following actions for all years of the twentieth century for ($year = 1900; $year <= 1999; $year++) { //Make the following actions for all months from January to December for ($month = 1; $month <= 12; $month++) { // Get Unix Timestamp of the current month and year on the first day of the month $current_date = mktime(0, 0, 0, $month, 01, $year); $get_day_of_week = date("D", $current_date); echo $year . ", " . $month . ": " . $get_day_of_week. "($current_date)" . "\n"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 3
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 5
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 3
Branch analysis from position: 35
Branch analysis from position: 3
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 5
Branch analysis from position: 32
Branch analysis from position: 5
filename:       /in/IhhX5
function name:  (null)
number of ops:  36
compiled vars:  !0 = $number_of_sundays, !1 = $year, !2 = $month, !3 = $current_date, !4 = $get_day_of_week
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    6     1        ASSIGN                                                   !1, 1900
          2      > JMP                                                      ->33
    8     3    >   ASSIGN                                                   !2, 1
          4      > JMP                                                      ->30
   10     5    >   INIT_FCALL                                               'mktime'
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 0
          9        SEND_VAR                                                 !2
         10        SEND_VAL                                                 1
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !3, $8
   12    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'D'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !4, $10
   14    19        CONCAT                                           ~12     !1, '%2C+'
         20        CONCAT                                           ~13     ~12, !2
         21        CONCAT                                           ~14     ~13, '%3A+'
         22        CONCAT                                           ~15     ~14, !4
         23        ROPE_INIT                                     3  ~17     '%28'
         24        ROPE_ADD                                      1  ~17     ~17, !3
         25        ROPE_END                                      2  ~16     ~17, '%29'
         26        CONCAT                                           ~19     ~15, ~16
         27        CONCAT                                           ~20     ~19, '%0A'
         28        ECHO                                                     ~20
    8    29        PRE_INC                                                  !2
         30    >   IS_SMALLER_OR_EQUAL                                      !2, 12
         31      > JMPNZ                                                    ~22, ->5
    6    32    >   PRE_INC                                                  !1
         33    >   IS_SMALLER_OR_EQUAL                                      !1, 1999
         34      > JMPNZ                                                    ~24, ->3
   16    35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
383 ms | 1396 KiB | 19 Q