3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d\TH:i:sP'); $nextbid = 100; $bidmax = 300; $percent = 15; while($nextbid < $bidmax ) { $nextbid = (($nextbid*$percent/100)+$nextbid); print_r($nextbid); } $nextbid = round($nextbid/20, 0)* 20;
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 = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
Branch analysis from position: 8
filename:       /in/dX3F3
function name:  (null)
number of ops:  25
compiled vars:  !0 = $nextbid, !1 = $bidmax, !2 = $percent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3AsP'
          2        DO_ICALL                                         $3      
          3        ECHO                                                     $3
    4     4        ASSIGN                                                   !0, 100
    5     5        ASSIGN                                                   !1, 300
    6     6        ASSIGN                                                   !2, 15
    7     7      > JMP                                                      ->15
    8     8    >   MUL                                              ~7      !0, !2
          9        DIV                                              ~8      ~7, 100
         10        ADD                                              ~9      ~8, !0
         11        ASSIGN                                                   !0, ~9
    9    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
    7    15    >   IS_SMALLER                                               !0, !1
         16      > JMPNZ                                                    ~12, ->8
   12    17    >   INIT_FCALL                                               'round'
         18        DIV                                              ~13     !0, 20
         19        SEND_VAL                                                 ~13
         20        SEND_VAL                                                 0
         21        DO_ICALL                                         $14     
         22        MUL                                              ~15     $14, 20
         23        ASSIGN                                                   !0, ~15
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.46 ms | 1395 KiB | 19 Q