3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('y-n'); var_dump(range(15,30)); foreach (range(15, 30) as $year) { foreach (range(1, 12) as $month) { $cardDate = sprintf('%s-%s', $year, $month); echo $currentDate .' ?= ' . $cardDate . ' = '. $currentDate > $cardDate . PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 39
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 39
Branch analysis from position: 17
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 37
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 37
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 37
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
filename:       /in/q89jk
function name:  (null)
number of ops:  41
compiled vars:  !0 = $currentDate, !1 = $year, !2 = $month, !3 = $cardDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'y-n'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'range'
          6        SEND_VAL                                                 15
          7        SEND_VAL                                                 30
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
    5    11        INIT_FCALL                                               'range'
         12        SEND_VAL                                                 15
         13        SEND_VAL                                                 30
         14        DO_ICALL                                         $8      
         15      > FE_RESET_R                                       $9      $8, ->39
         16    > > FE_FETCH_R                                               $9, !1, ->39
    6    17    >   INIT_FCALL                                               'range'
         18        SEND_VAL                                                 1
         19        SEND_VAL                                                 12
         20        DO_ICALL                                         $10     
         21      > FE_RESET_R                                       $11     $10, ->37
         22    > > FE_FETCH_R                                               $11, !2, ->37
    7    23    >   INIT_FCALL                                               'sprintf'
         24        SEND_VAL                                                 '%25s-%25s'
         25        SEND_VAR                                                 !1
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                         $12     
         28        ASSIGN                                                   !3, $12
    8    29        CONCAT                                           ~14     !0, '+%3F%3D+'
         30        CONCAT                                           ~15     ~14, !3
         31        CONCAT                                           ~16     ~15, '+%3D+'
         32        CONCAT                                           ~17     ~16, !0
         33        CONCAT                                           ~18     !3, '%0A'
         34        IS_SMALLER                                       ~19     ~18, ~17
         35        ECHO                                                     ~19
    6    36      > JMP                                                      ->22
         37    >   FE_FREE                                                  $11
    5    38      > JMP                                                      ->16
         39    >   FE_FREE                                                  $9
   10    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.71 ms | 1400 KiB | 21 Q