3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 1; $week_day = 6; for ($c=1; $c<8; $c++) { if ($week_day == $c) { var_dump(${'day'.$c.'_hours'} = $value); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
Branch analysis from position: 4
Branch analysis from position: 13
filename:       /in/SAEZc
function name:  (null)
number of ops:  17
compiled vars:  !0 = $value, !1 = $week_day, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, 6
    4     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->14
    6     4    >   IS_EQUAL                                                 !1, !2
          5      > JMPZ                                                     ~6, ->13
    8     6    >   INIT_FCALL                                               'var_dump'
          7        CONCAT                                           ~7      'day', !2
          8        CONCAT                                           ~8      ~7, '_hours'
          9        FETCH_W                      local               $9      ~8
         10        ASSIGN                                           ~10     $9, !0
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                                 
    4    13    >   PRE_INC                                                  !2
         14    >   IS_SMALLER                                               !2, 8
         15      > JMPNZ                                                    ~13, ->4
   10    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.78 ms | 1395 KiB | 15 Q