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'); $current_week_number = "45"; 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 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 8
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 8
Branch analysis from position: 22
Branch analysis from position: 8
Branch analysis from position: 19
filename:       /in/Fqjse
function name:  (null)
number of ops:  23
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
    6     5        ASSIGN                                                   !1, '45'
    7     6        ASSIGN                                                   !2, 1
          7      > JMP                                                      ->20
    8     8    >   CAST                                          6  ~9      !2
          9        ASSIGN                                                   !3, ~9
    9    10        FETCH_DIM_R                                      ~11     !0, !3
         11        IS_EQUAL                                                 !1, ~11
         12      > JMPZ                                                     ~12, ->19
   11    13    >   CONCAT                                           ~13     !1, '+'
         14        INIT_FCALL                                               'key'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $14     
         17        CONCAT                                           ~15     ~13, $14
         18        ECHO                                                     ~15
    7    19    >   PRE_INC                                                  !2
         20    >   IS_SMALLER                                               !2, 23
         21      > JMPNZ                                                    ~17, ->8
   14    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.29 ms | 1395 KiB | 17 Q