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); echo '\n'; print_r($nextbid); } $nextbid = round($nextbid/20, 0)* 20; print_r($nextbid);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
Branch analysis from position: 8
filename:       /in/lmRqe
function name:  (null)
number of ops:  29
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                                                      ->16
    8     8    >   MUL                                              ~7      !0, !2
          9        DIV                                              ~8      ~7, 100
         10        ADD                                              ~9      ~8, !0
         11        ASSIGN                                                   !0, ~9
    9    12        ECHO                                                     '%5Cn'
   10    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
    7    16    >   IS_SMALLER_OR_EQUAL                                      !0, !1
         17      > JMPNZ                                                    ~12, ->8
   13    18    >   INIT_FCALL                                               'round'
         19        DIV                                              ~13     !0, 20
         20        SEND_VAL                                                 ~13
         21        SEND_VAL                                                 0
         22        DO_ICALL                                         $14     
         23        MUL                                              ~15     $14, 20
         24        ASSIGN                                                   !0, ~15
   14    25        INIT_FCALL                                               'print_r'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153 ms | 937 KiB | 20 Q