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 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 16
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 16
Branch analysis from position: 27
Branch analysis from position: 16
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 16
Branch analysis from position: 27
Branch analysis from position: 16
filename:       /in/oKIfs
function name:  (null)
number of ops:  28
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                                                      ->25
    7    16    >   MOD                                              ~8      !2, 4
         17        IS_EQUAL                                                 ~8, 0
         18      > JMPZ                                                     ~9, ->23
    8    19    >   CONCAT                                           ~10     '%3Cdiv+style%3D%27color%3A+red%27%3E', !2
         20        CONCAT                                           ~11     ~10, '%3C%2Fdiv%3E'
         21        ECHO                                                     ~11
         22      > JMP                                                      ->24
   11    23    >   ECHO                                                     !2
    6    24    >   PRE_INC                                                  !2
         25    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         26      > JMPNZ                                                    ~13, ->16
   13    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.29 ms | 1396 KiB | 17 Q