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 = 0; $row < 23; $row++) { $x=0; foreach($SPW[$row] as $key => $value) { if($current_week_number== $key) { echo $current_week_number . " " . $key; } $x++; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 7
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 17
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 7
Branch analysis from position: 23
Branch analysis from position: 7
Branch analysis from position: 19
filename:       /in/gtNhf
function name:  (null)
number of ops:  24
compiled vars:  !0 = $SPW, !1 = $current_week_number, !2 = $row, !3 = $x, !4 = $value, !5 = $key
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                                         $7      
          4        ASSIGN                                                   !1, $7
    7     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->21
    8     7    >   ASSIGN                                                   !3, 0
   10     8        FETCH_DIM_R                                      ~11     !0, !2
          9      > FE_RESET_R                                       $12     ~11, ->19
         10    > > FE_FETCH_R                                       ~13     $12, !4, ->19
         11    >   ASSIGN                                                   !5, ~13
   12    12        IS_EQUAL                                                 !1, !5
         13      > JMPZ                                                     ~15, ->17
   14    14    >   CONCAT                                           ~16     !1, '+'
         15        CONCAT                                           ~17     ~16, !5
         16        ECHO                                                     ~17
   17    17    >   PRE_INC                                                  !3
   10    18      > JMP                                                      ->10
         19    >   FE_FREE                                                  $12
    7    20        PRE_INC                                                  !2
         21    >   IS_SMALLER                                               !2, 23
         22      > JMPNZ                                                    ~20, ->7
   19    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.23 ms | 1396 KiB | 15 Q