3v4l.org

run code in 300+ PHP versions simultaneously
<?php //list the years you have been alive echo "<br>You know what? Just for fun I am going to list all the years you have been alive. Here you go:<br>"; $year1 = date("Y"); $age = 20; // Sample data for ($y = $age + 1; $y < 100 && $y > 0; $y--) { $yearval = $year1 - $y; echo "$yearval<br>"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 9
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
Branch analysis from position: 19
Branch analysis from position: 19
filename:       /in/oMiSu
function name:  (null)
number of ops:  21
compiled vars:  !0 = $year1, !1 = $age, !2 = $y, !3 = $yearval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     '%3Cbr%3EYou+know+what%3F+Just+for+fun+I+am+going+to+list+all+the+years+you+have+been+alive.+Here+you+go%3A%3Cbr%3E'
    5     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    6     5        ASSIGN                                                   !1, 20
    7     6        ADD                                              ~7      !1, 1
          7        ASSIGN                                                   !2, ~7
          8      > JMP                                                      ->15
    8     9    >   SUB                                              ~9      !0, !2
         10        ASSIGN                                                   !3, ~9
    9    11        NOP                                                      
         12        FAST_CONCAT                                      ~11     !3, '%3Cbr%3E'
         13        ECHO                                                     ~11
    7    14        PRE_DEC                                                  !2
         15    >   IS_SMALLER                                       ~13     !2, 100
         16      > JMPZ_EX                                          ~13     ~13, ->19
         17    >   IS_SMALLER                                       ~14     0, !2
         18        BOOL                                             ~13     ~14
         19    > > JMPNZ                                                    ~13, ->9
   10    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.36 ms | 1010 KiB | 14 Q