3v4l.org

run code in 300+ PHP versions simultaneously
<?php $money = 1000; $interestRate = 4; $year = 0; while($money < 2000){ $money += ($money/100) * $interestRate; $year++; } echo "Geld bedrag: ".$money; echo "Na aantal jaar ".$year; $number = rand(1,6); $points = 0; $firstRun = true; echo "Het getrokken getal is: ".$number; while($number%2 == 0) { if(!$firstRun){ echo "Het getrokken getal is: ".$number; } for($i=1;$i<=$number;$i++){ $value = rand(1,52); $points += $value; echo "De waarde van de kaart is: ".$value; } $number = rand(1,6); } echo "Er zijn totaal ".$points." punten gescoord";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 24
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 30
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 24
Branch analysis from position: 49
Branch analysis from position: 24
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 30
Branch analysis from position: 41
Branch analysis from position: 30
Branch analysis from position: 28
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
Branch analysis from position: 4
filename:       /in/QCODk
function name:  (null)
number of ops:  53
compiled vars:  !0 = $money, !1 = $interestRate, !2 = $year, !3 = $number, !4 = $points, !5 = $firstRun, !6 = $i, !7 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1000
    3     1        ASSIGN                                                   !1, 4
    4     2        ASSIGN                                                   !2, 0
    6     3      > JMP                                                      ->8
    7     4    >   DIV                                              ~11     !0, 100
          5        MUL                                              ~12     !1, ~11
          6        ASSIGN_OP                                     1          !0, ~12
    8     7        PRE_INC                                                  !2
    6     8    >   IS_SMALLER                                               !0, 2000
          9      > JMPNZ                                                    ~15, ->4
   11    10    >   CONCAT                                           ~16     'Geld+bedrag%3A+', !0
         11        ECHO                                                     ~16
   12    12        CONCAT                                           ~17     'Na+aantal+jaar+', !2
         13        ECHO                                                     ~17
   14    14        INIT_FCALL                                               'rand'
         15        SEND_VAL                                                 1
         16        SEND_VAL                                                 6
         17        DO_ICALL                                         $18     
         18        ASSIGN                                                   !3, $18
   15    19        ASSIGN                                                   !4, 0
   16    20        ASSIGN                                                   !5, <true>
   18    21        CONCAT                                           ~22     'Het+getrokken+getal+is%3A+', !3
         22        ECHO                                                     ~22
   20    23      > JMP                                                      ->46
   22    24    >   BOOL_NOT                                         ~23     !5
         25      > JMPZ                                                     ~23, ->28
         26    >   CONCAT                                           ~24     'Het+getrokken+getal+is%3A+', !3
         27        ECHO                                                     ~24
   23    28    >   ASSIGN                                                   !6, 1
         29      > JMP                                                      ->39
   24    30    >   INIT_FCALL                                               'rand'
         31        SEND_VAL                                                 1
         32        SEND_VAL                                                 52
         33        DO_ICALL                                         $26     
         34        ASSIGN                                                   !7, $26
   25    35        ASSIGN_OP                                     1          !4, !7
   27    36        CONCAT                                           ~29     'De+waarde+van+de+kaart+is%3A+', !7
         37        ECHO                                                     ~29
   23    38        PRE_INC                                                  !6
         39    >   IS_SMALLER_OR_EQUAL                                      !6, !3
         40      > JMPNZ                                                    ~31, ->30
   30    41    >   INIT_FCALL                                               'rand'
         42        SEND_VAL                                                 1
         43        SEND_VAL                                                 6
         44        DO_ICALL                                         $32     
         45        ASSIGN                                                   !3, $32
   20    46    >   MOD                                              ~34     !3, 2
         47        IS_EQUAL                                                 ~34, 0
         48      > JMPNZ                                                    ~35, ->24
   33    49    >   CONCAT                                           ~36     'Er+zijn+totaal+', !4
         50        CONCAT                                           ~37     ~36, '+punten+gescoord'
         51        ECHO                                                     ~37
         52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.62 ms | 1392 KiB | 15 Q