3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('y-n'); 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 = 9, Position 2 = 32
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 32
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 30
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 30
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 30
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/pthnh
function name:  (null)
number of ops:  34
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                                               'range'
          5        SEND_VAL                                                 15
          6        SEND_VAL                                                 30
          7        DO_ICALL                                         $6      
          8      > FE_RESET_R                                       $7      $6, ->32
          9    > > FE_FETCH_R                                               $7, !1, ->32
    5    10    >   INIT_FCALL                                               'range'
         11        SEND_VAL                                                 1
         12        SEND_VAL                                                 12
         13        DO_ICALL                                         $8      
         14      > FE_RESET_R                                       $9      $8, ->30
         15    > > FE_FETCH_R                                               $9, !2, ->30
    6    16    >   INIT_FCALL                                               'sprintf'
         17        SEND_VAL                                                 '%25s-%25s'
         18        SEND_VAR                                                 !1
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $10     
         21        ASSIGN                                                   !3, $10
    7    22        CONCAT                                           ~12     !0, '+%3F%3D+'
         23        CONCAT                                           ~13     ~12, !3
         24        CONCAT                                           ~14     ~13, '+%3D+'
         25        IS_SMALLER                                       ~15     !3, !0
         26        CONCAT                                           ~16     ~14, ~15
         27        CONCAT                                           ~17     ~16, '%0A'
         28        ECHO                                                     ~17
    5    29      > JMP                                                      ->15
         30    >   FE_FREE                                                  $9
    4    31      > JMP                                                      ->9
         32    >   FE_FREE                                                  $7
    9    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.76 ms | 1401 KiB | 19 Q