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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.8 ms | 1395 KiB | 17 Q