3v4l.org

run code in 300+ PHP versions simultaneously
<?php $SPW = array("1"=>"38", "2"=>"39", "3"=>"40", "4"=>"41", "5"=>"42", "6"=>"45", "7"=>"46", "8"=>"47", "9"=>"48", "10"=>"49", "11"=>"50", "12"=>"51", "13"=>"2", "14"=>"3", "15"=>"4", "16"=>"8", "17"=>"10", "18"=>"11", "19"=>"12", "20"=>"13", "21"=>"16", "22"=>"17"); $current_week_number = date('W'); for($row=1; $row<23; $row++) { $r = strval($row); if($SPW[$r]==$current_week_number) { echo($current_week_number . " " . key($SPW)); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
Branch analysis from position: 7
Branch analysis from position: 18
filename:       /in/ItXZZ
function name:  (null)
number of ops:  22
compiled vars:  !0 = $SPW, !1 = $current_week_number, !2 = $row, !3 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'W'
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    7     5        ASSIGN                                                   !2, 1
          6      > JMP                                                      ->19
    8     7    >   CAST                                          6  ~8      !2
          8        ASSIGN                                                   !3, ~8
    9     9        FETCH_DIM_R                                      ~10     !0, !3
         10        IS_EQUAL                                                 !1, ~10
         11      > JMPZ                                                     ~11, ->18
   11    12    >   CONCAT                                           ~12     !1, '+'
         13        INIT_FCALL                                               'key'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $13     
         16        CONCAT                                           ~14     ~12, $13
         17        ECHO                                                     ~14
    7    18    >   PRE_INC                                                  !2
         19    >   IS_SMALLER                                               !2, 23
         20      > JMPNZ                                                    ~16, ->7
   14    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.45 ms | 1395 KiB | 17 Q