3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP echo "<form method='post' >"; echo "<input type='text' name='eingabe'>"; echo "<input type='submit'>"; echo "</form>"; $e=$_POST['eingabe']; function geld500($e) { $multi=floor($e/500); $rest=$e%500; if($multi!=0) {echo "Anzahl der 500 Euro-Scheine: ", $multi, "<br>";} geld200($rest); } function geld200($e) { $multi=floor($e/200); $rest=$e%200; if($multi!=0) {echo "Anzahl der 200 Euro-Scheine: ", $multi, "<br>";} geld100($rest); } function geld100($e) { $multi=floor($e/100); $rest=$e%100; if($multi!=0) {echo "Anzahl der 100 Euro-Scheine: ", $multi, "<br>";} geld50($rest); } function geld50($e) { $multi=floor($e/50); $rest=$e%50; if($multi!=0) {echo "Anzahl der 50 Euro-Scheine: ", $multi, "<br>";} geld20($rest); } function geld20($e) { $multi=floor($e/20); $rest=$e%20; if($multi!=0) {echo "Anzahl der 20 Euro-Scheine: ", $multi, "<br>";} geld10($rest); } function geld10($e) { $multi=floor($e/10); $rest=$e%10; if($multi!=0) {echo "Anzahl der 10 Euro-Scheine: ", $multi, "<br>";} geld5($rest); } function geld5($e) { $multi=floor($e/5); $rest=$e%5; if($multi!=0) {echo "Anzahl der 5 Euro-Scheine: ", $multi, "<br>";} } if(isset($_POST['eingabe']) and $_POST['eingabe']!="") { if($e<=10000 and $e%5==0) { geld500($e); echo "<br> Summe: ", $e," Euro";} else {echo "<img src='http://i.imgur.com/dQXEDol.gif'>";} } else echo "Geben Sie bitte den Betrag ein!<br>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 30
Branch analysis from position: 15
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 28
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 20
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/8MeCc
function name:  (null)
number of ops:  32
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     '%3Cform+method%3D%27post%27+%3E'
    5     1        ECHO                                                     '%3Cinput+type%3D%27text%27+name%3D%27eingabe%27%3E'
    6     2        ECHO                                                     '%3Cinput+type%3D%27submit%27%3E'
    7     3        ECHO                                                     '%3C%2Fform%3E'
    9     4        FETCH_R                      global              ~1      '_POST'
          5        FETCH_DIM_R                                      ~2      ~1, 'eingabe'
          6        ASSIGN                                                   !0, ~2
   73     7        FETCH_IS                                         ~4      '_POST'
          8        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      ~4, 'eingabe'
          9      > JMPZ_EX                                          ~5      ~5, ->14
         10    >   FETCH_R                      global              ~6      '_POST'
         11        FETCH_DIM_R                                      ~7      ~6, 'eingabe'
         12        IS_NOT_EQUAL                                     ~8      ~7, ''
         13        BOOL                                             ~5      ~8
         14    > > JMPZ                                                     ~5, ->30
   75    15    >   IS_SMALLER_OR_EQUAL                              ~9      !0, 10000
         16      > JMPZ_EX                                          ~9      ~9, ->20
         17    >   MOD                                              ~10     !0, 5
         18        IS_EQUAL                                         ~11     ~10, 0
         19        BOOL                                             ~9      ~11
         20    > > JMPZ                                                     ~9, ->28
   77    21    >   INIT_FCALL                                               'geld500'
         22        SEND_VAR                                                 !0
         23        DO_FCALL                                      0          
   78    24        ECHO                                                     '%3Cbr%3E+Summe%3A+'
         25        ECHO                                                     !0
         26        ECHO                                                     '+Euro'
         27      > JMP                                                      ->29
   79    28    >   ECHO                                                     '%3Cimg+src%3D%27http%3A%2F%2Fi.imgur.com%2FdQXEDol.gif%27%3E'
         29    > > JMP                                                      ->31
   82    30    >   ECHO                                                     'Geben+Sie+bitte+den+Betrag+ein%21%3Cbr%3E'
   88    31    > > RETURN                                                   1

Function geld500:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/8MeCc
function name:  geld500
number of ops:  17
compiled vars:  !0 = $e, !1 = $multi, !2 = $rest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~3      !0, 500
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   14     6        MOD                                              ~6      !0, 500
          7        ASSIGN                                                   !2, ~6
   15     8        IS_NOT_EQUAL                                             !1, 0
          9      > JMPZ                                                     ~8, ->13
   16    10    >   ECHO                                                     'Anzahl+der+500+Euro-Scheine%3A+'
         11        ECHO                                                     !1
         12        ECHO                                                     '%3Cbr%3E'
   17    13    >   INIT_FCALL_BY_NAME                                       'geld200'
         14        SEND_VAR_EX                                              !2
         15        DO_FCALL                                      0          
   18    16      > RETURN                                                   null

End of function geld500

Function geld200:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/8MeCc
function name:  geld200
number of ops:  17
compiled vars:  !0 = $e, !1 = $multi, !2 = $rest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   22     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~3      !0, 200
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   23     6        MOD                                              ~6      !0, 200
          7        ASSIGN                                                   !2, ~6
   24     8        IS_NOT_EQUAL                                             !1, 0
          9      > JMPZ                                                     ~8, ->13
   25    10    >   ECHO                                                     'Anzahl+der+200+Euro-Scheine%3A+'
         11        ECHO                                                     !1
         12        ECHO                                                     '%3Cbr%3E'
   26    13    >   INIT_FCALL_BY_NAME                                       'geld100'
         14        SEND_VAR_EX                                              !2
         15        DO_FCALL                                      0          
   27    16      > RETURN                                                   null

End of function geld200

Function geld100:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/8MeCc
function name:  geld100
number of ops:  17
compiled vars:  !0 = $e, !1 = $multi, !2 = $rest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   RECV                                             !0      
   31     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~3      !0, 100
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   32     6        MOD                                              ~6      !0, 100
          7        ASSIGN                                                   !2, ~6
   33     8        IS_NOT_EQUAL                                             !1, 0
          9      > JMPZ                                                     ~8, ->13
   34    10    >   ECHO                                                     'Anzahl+der+100+Euro-Scheine%3A+'
         11        ECHO                                                     !1
         12        ECHO                                                     '%3Cbr%3E'
   35    13    >   INIT_FCALL_BY_NAME                                       'geld50'
         14        SEND_VAR_EX                                              !2
         15        DO_FCALL                                      0          
   36    16      > RETURN                                                   null

End of function geld100

Function geld50:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/8MeCc
function name:  geld50
number of ops:  17
compiled vars:  !0 = $e, !1 = $multi, !2 = $rest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   RECV                                             !0      
   40     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~3      !0, 50
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   41     6        MOD                                              ~6      !0, 50
          7        ASSIGN                                                   !2, ~6
   42     8        IS_NOT_EQUAL                                             !1, 0
          9      > JMPZ                                                     ~8, ->13
   43    10    >   ECHO                                                     'Anzahl+der+50+Euro-Scheine%3A+'
         11        ECHO                                                     !1
         12        ECHO                                                     '%3Cbr%3E'
   44    13    >   INIT_FCALL_BY_NAME                                       'geld20'
         14        SEND_VAR_EX                                              !2
         15        DO_FCALL                                      0          
   45    16      > RETURN                                                   null

End of function geld50

Function geld20:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/8MeCc
function name:  geld20
number of ops:  17
compiled vars:  !0 = $e, !1 = $multi, !2 = $rest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   47     0  E >   RECV                                             !0      
   49     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~3      !0, 20
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   50     6        MOD                                              ~6      !0, 20
          7        ASSIGN                                                   !2, ~6
   51     8        IS_NOT_EQUAL                                             !1, 0
          9      > JMPZ                                                     ~8, ->13
   52    10    >   ECHO                                                     'Anzahl+der+20+Euro-Scheine%3A+'
         11        ECHO                                                     !1
         12        ECHO                                                     '%3Cbr%3E'
   53    13    >   INIT_FCALL_BY_NAME                                       'geld10'
         14        SEND_VAR_EX                                              !2
         15        DO_FCALL                                      0          
   54    16      > RETURN                                                   null

End of function geld20

Function geld10:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/8MeCc
function name:  geld10
number of ops:  17
compiled vars:  !0 = $e, !1 = $multi, !2 = $rest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   56     0  E >   RECV                                             !0      
   58     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~3      !0, 10
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   59     6        MOD                                              ~6      !0, 10
          7        ASSIGN                                                   !2, ~6
   60     8        IS_NOT_EQUAL                                             !1, 0
          9      > JMPZ                                                     ~8, ->13
   61    10    >   ECHO                                                     'Anzahl+der+10+Euro-Scheine%3A+'
         11        ECHO                                                     !1
         12        ECHO                                                     '%3Cbr%3E'
   62    13    >   INIT_FCALL_BY_NAME                                       'geld5'
         14        SEND_VAR_EX                                              !2
         15        DO_FCALL                                      0          
   63    16      > RETURN                                                   null

End of function geld10

Function geld5:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/8MeCc
function name:  geld5
number of ops:  14
compiled vars:  !0 = $e, !1 = $multi, !2 = $rest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   65     0  E >   RECV                                             !0      
   67     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~3      !0, 5
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   68     6        MOD                                              ~6      !0, 5
          7        ASSIGN                                                   !2, ~6
   69     8        IS_NOT_EQUAL                                             !1, 0
          9      > JMPZ                                                     ~8, ->13
   70    10    >   ECHO                                                     'Anzahl+der+5+Euro-Scheine%3A+'
         11        ECHO                                                     !1
         12        ECHO                                                     '%3Cbr%3E'
   71    13    > > RETURN                                                   null

End of function geld5

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.47 ms | 1415 KiB | 16 Q