3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format='F j, Y'; for ( $i = 1900; $i < 2050; $i++) { $datep = "$i-01-01"; ?> Trying: <?php echo $datep; ?> = <?php echo date($format, strtotime($datep)); ?><br> <?php } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
Branch analysis from position: 3
filename:       /in/DI3C5
function name:  (null)
number of ops:  22
compiled vars:  !0 = $format, !1 = $i, !2 = $datep
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'F+j%2C+Y'
    3     1        ASSIGN                                                   !1, 1900
          2      > JMP                                                      ->19
    4     3    >   NOP                                                      
          4        FAST_CONCAT                                      ~5      !1, '-01-01'
          5        ASSIGN                                                   !2, ~5
    6     6        ECHO                                                     '++++Trying%3A+'
          7        ECHO                                                     !2
          8        ECHO                                                     '+%3D+'
          9        INIT_FCALL                                               'date'
         10        SEND_VAR                                                 !0
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                         $8      
         16        ECHO                                                     $8
         17        ECHO                                                     '%3Cbr%3E%0A++++'
    3    18        PRE_INC                                                  !1
         19    >   IS_SMALLER                                               !1, 2050
         20      > JMPNZ                                                    ~10, ->3
    9    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.59 ms | 1400 KiB | 17 Q