3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = mktime(0, 0, 0, 4, 1, 2013); $days = date("t", $date); for ($i = 1; $i <= $days; $i++) { if(i % 4 == 0){ echo "<div style='color: red'>" . $i . "</div>"; } else{ echo $i; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 16
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 16
Branch analysis from position: 28
Branch analysis from position: 16
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 16
Branch analysis from position: 28
Branch analysis from position: 16
filename:       /in/HsUAr
function name:  (null)
number of ops:  29
compiled vars:  !0 = $date, !1 = $days, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mktime'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 4
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 2013
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    4     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 't'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    6    14        ASSIGN                                                   !2, 1
         15      > JMP                                                      ->26
    7    16    >   FETCH_CONSTANT                                   ~8      'i'
         17        MOD                                              ~9      ~8, 4
         18        IS_EQUAL                                                 ~9, 0
         19      > JMPZ                                                     ~10, ->24
    8    20    >   CONCAT                                           ~11     '%3Cdiv+style%3D%27color%3A+red%27%3E', !2
         21        CONCAT                                           ~12     ~11, '%3C%2Fdiv%3E'
         22        ECHO                                                     ~12
         23      > JMP                                                      ->25
   11    24    >   ECHO                                                     !2
    6    25    >   PRE_INC                                                  !2
         26    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         27      > JMPNZ                                                    ~14, ->16
   13    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.29 ms | 1396 KiB | 17 Q