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_date = date('d/m/Y'); 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 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 11
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 23
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 23
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 21
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 11
Branch analysis from position: 27
Branch analysis from position: 11
Branch analysis from position: 23
filename:       /in/AA8P2
function name:  (null)
number of ops:  28
compiled vars:  !0 = $SPW, !1 = $current_week_number, !2 = $current_date, !3 = $row, !4 = $x, !5 = $value, !6 = $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                                         $8      
          4        ASSIGN                                                   !1, $8
    6     5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'd%2Fm%2FY'
          7        DO_ICALL                                         $10     
          8        ASSIGN                                                   !2, $10
    8     9        ASSIGN                                                   !3, 0
         10      > JMP                                                      ->25
    9    11    >   ASSIGN                                                   !4, 0
   11    12        FETCH_DIM_R                                      ~14     !0, !3
         13      > FE_RESET_R                                       $15     ~14, ->23
         14    > > FE_FETCH_R                                       ~16     $15, !5, ->23
         15    >   ASSIGN                                                   !6, ~16
   13    16        IS_EQUAL                                                 !1, !6
         17      > JMPZ                                                     ~18, ->21
   15    18    >   CONCAT                                           ~19     !1, '+'
         19        CONCAT                                           ~20     ~19, !6
         20        ECHO                                                     ~20
   18    21    >   PRE_INC                                                  !4
   11    22      > JMP                                                      ->14
         23    >   FE_FREE                                                  $15
    8    24        PRE_INC                                                  !3
         25    >   IS_SMALLER                                               !3, 23
         26      > JMPNZ                                                    ~23, ->11
   20    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.74 ms | 941 KiB | 16 Q