3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1110; $b = 370; $c = 6171.6; $h = 71.1; $i = -50; // undef $k = 0; // undef $l = 0; // undef $step = 0.001; // Auflösung für $i $i_max = 100; // um keine Endlosschleife zu produzieren $epsilon = 0.001; // Fehlertoleranz $found = false; do { $k = 0.9942; $l = 0.998670248976177; $tmp = (556 / ($h / (545.223880597015 / 1000 * $k * $l))); $found = (abs($i - $tmp) <= $epsilon); if (!$found) { $i += $step; } if ($i > $i_max) { throw new Exception('Unable to calculate $i'); } } while (!$found); $g = ceil($h / (545.223880597015 / 1000 * $l * $k)); //$i = 556 / $g; // ??? $i haben wir schon $j = $g * $b / 1000 * $a / 100 * 1; $e = ($i - $b / 1000) * $a / 100; $f = $i * $a / 100; $d = $c - $j; foreach (range('a', 'l') as $var) { echo $var . ' = '; var_dump($$var); echo '<br />'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 27
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 33
Branch analysis from position: 29
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 11
Branch analysis from position: 35
2 jumps found. (Code = 77) Position 1 = 63, Position 2 = 72
Branch analysis from position: 63
2 jumps found. (Code = 78) Position 1 = 64, Position 2 = 72
Branch analysis from position: 64
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
Branch analysis from position: 72
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 72
Branch analysis from position: 11
Branch analysis from position: 27
filename:       /in/ghBPP
function name:  (null)
number of ops:  74
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $h, !4 = $i, !5 = $k, !6 = $l, !7 = $step, !8 = $i_max, !9 = $epsilon, !10 = $found, !11 = $tmp, !12 = $g, !13 = $j, !14 = $e, !15 = $f, !16 = $d, !17 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1110
    3     1        ASSIGN                                                   !1, 370
    4     2        ASSIGN                                                   !2, 6171.6
    6     3        ASSIGN                                                   !3, 71.1
    8     4        ASSIGN                                                   !4, -50
    9     5        ASSIGN                                                   !5, 0
   10     6        ASSIGN                                                   !6, 0
   12     7        ASSIGN                                                   !7, 0.001
   13     8        ASSIGN                                                   !8, 100
   14     9        ASSIGN                                                   !9, 0.001
   15    10        ASSIGN                                                   !10, <false>
   18    11    >   ASSIGN                                                   !5, 0.9942
   19    12        ASSIGN                                                   !6, 0.99867
   20    13        MUL                                              ~31     !5, 0.545224
         14        MUL                                              ~32     !6, ~31
         15        DIV                                              ~33     !3, ~32
         16        DIV                                              ~34     556, ~33
         17        ASSIGN                                                   !11, ~34
   22    18        INIT_FCALL                                               'abs'
         19        SUB                                              ~36     !4, !11
         20        SEND_VAL                                                 ~36
         21        DO_ICALL                                         $37     
         22        IS_SMALLER_OR_EQUAL                              ~38     $37, !9
         23        ASSIGN                                                   !10, ~38
   24    24        BOOL_NOT                                         ~40     !10
         25      > JMPZ                                                     ~40, ->27
   25    26    >   ASSIGN_OP                                     1          !4, !7
   28    27    >   IS_SMALLER                                               !8, !4
         28      > JMPZ                                                     ~42, ->33
   29    29    >   NEW                                              $43     'Exception'
         30        SEND_VAL_EX                                              'Unable+to+calculate+%24i'
         31        DO_FCALL                                      0          
         32      > THROW                                         0          $43
   31    33    >   BOOL_NOT                                         ~45     !10
         34      > JMPNZ                                                    ~45, ->11
   35    35    >   INIT_FCALL                                               'ceil'
         36        MUL                                              ~46     !6, 0.545224
         37        MUL                                              ~47     !5, ~46
         38        DIV                                              ~48     !3, ~47
         39        SEND_VAL                                                 ~48
         40        DO_ICALL                                         $49     
         41        ASSIGN                                                   !12, $49
   39    42        MUL                                              ~51     !12, !1
         43        DIV                                              ~52     ~51, 1000
         44        MUL                                              ~53     !0, ~52
         45        DIV                                              ~54     ~53, 100
         46        MUL                                              ~55     ~54, 1
         47        ASSIGN                                                   !13, ~55
   41    48        DIV                                              ~57     !1, 1000
         49        SUB                                              ~58     !4, ~57
         50        MUL                                              ~59     !0, ~58
         51        DIV                                              ~60     ~59, 100
         52        ASSIGN                                                   !14, ~60
   42    53        MUL                                              ~62     !4, !0
         54        DIV                                              ~63     ~62, 100
         55        ASSIGN                                                   !15, ~63
   44    56        SUB                                              ~65     !2, !13
         57        ASSIGN                                                   !16, ~65
   46    58        INIT_FCALL                                               'range'
         59        SEND_VAL                                                 'a'
         60        SEND_VAL                                                 'l'
         61        DO_ICALL                                         $67     
         62      > FE_RESET_R                                       $68     $67, ->72
         63    > > FE_FETCH_R                                               $68, !17, ->72
   47    64    >   CONCAT                                           ~69     !17, '+%3D+'
         65        ECHO                                                     ~69
   48    66        INIT_FCALL                                               'var_dump'
         67        FETCH_R                      local               ~70     !17
         68        SEND_VAL                                                 ~70
         69        DO_ICALL                                                 
   49    70        ECHO                                                     '%3Cbr+%2F%3E'
   46    71      > JMP                                                      ->63
         72    >   FE_FREE                                                  $68
   51    73      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.85 ms | 1400 KiB | 21 Q