3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'Duane'; $monthsAtMSE = 8; $loopCount = 10; while($loopCount > 0){ if($monthsAtMSE < 12){ echo $name . " has been at MSE for " . $monthsAtMSE . " months \n"; } else{ $yearCount = intVal($monthsAtMSE / 12); echo $name . " has been at MSE for " . $yearCount . " years \n"; } $monthsAtMSE = $monthsAtMSE + 1; $loopCount = $loopCount - 1; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 4
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 4
Branch analysis from position: 24
Branch analysis from position: 4
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 4
Branch analysis from position: 24
Branch analysis from position: 4
filename:       /in/EpAZt
function name:  (null)
number of ops:  25
compiled vars:  !0 = $name, !1 = $monthsAtMSE, !2 = $loopCount, !3 = $yearCount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Duane'
    4     1        ASSIGN                                                   !1, 8
    6     2        ASSIGN                                                   !2, 10
    8     3      > JMP                                                      ->22
    9     4    >   IS_SMALLER                                               !1, 12
          5      > JMPZ                                                     ~7, ->11
   10     6    >   CONCAT                                           ~8      !0, '+has+been+at+MSE+for+'
          7        CONCAT                                           ~9      ~8, !1
          8        CONCAT                                           ~10     ~9, '+months+%0A'
          9        ECHO                                                     ~10
         10      > JMP                                                      ->18
   13    11    >   DIV                                              ~11     !1, 12
         12        CAST                                          4  ~12     ~11
         13        ASSIGN                                                   !3, ~12
   14    14        CONCAT                                           ~14     !0, '+has+been+at+MSE+for+'
         15        CONCAT                                           ~15     ~14, !3
         16        CONCAT                                           ~16     ~15, '+years+%0A'
         17        ECHO                                                     ~16
   17    18    >   ADD                                              ~17     !1, 1
         19        ASSIGN                                                   !1, ~17
   18    20        SUB                                              ~19     !2, 1
         21        ASSIGN                                                   !2, ~19
    8    22    >   IS_SMALLER                                               0, !2
         23      > JMPNZ                                                    ~21, ->4
   19    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.62 ms | 1395 KiB | 13 Q